forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Serve some dynamic pages using transclusion components (oppia#7195)
* serve library page statically * serve creator dashboard page statically * serve exploration player statically * serve exploration_editor statically * serve profile page statically * serve collection editor page statically * serve collection player statically * serve collection_player statically * get exploration player meta via ajax * remove unnecessary console * modify test to add objective * work on failing backend tests * work on failing e2e tests * work on failing e2e test * fix issues arising from rootScope propagation * move dev mode test to e2e test * removed csrf token * work on failing accessibility test * fix lint issue * issues with rootscope * work on failing tests and address review comments * fix issue with collection player * removed exploration editor from this PR * work on failing test * still on backend test * remove unneeded file * remove remaining changes * minor changes * minor changes * address review comment * modified dev mode test * wrok on e2e tests * revert pre_commit_hook * address review comment * work on e2e test * work on failing test * fix e2e test * remove unnecessary files
- Loading branch information
1 parent
ba1fc92
commit 71fdef7
Showing
24 changed files
with
625 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 30 additions & 33 deletions
63
core/templates/dev/head/pages/collection-editor-page/collection-editor-page.mainpage.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,33 @@ | ||
{% extends 'dist/base.html' %} | ||
<!DOCTYPE html> | ||
<html ng-app="oppia" lang="<[currentLang]>" ng-controller="Base" itemscope itemtype="http://schema.org/Organization"> | ||
<head> | ||
@require('../../base_components/header.html', {"title": "Oppia"}) | ||
<script> | ||
var GLOBALS = { | ||
collectionId: JSON.parse('{{collection_id|js_string}}'), | ||
INTERACTION_SPECS: JSON.parse('{{INTERACTION_SPECS|js_string}}') | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<service-bootstrap></service-bootstrap> | ||
<base-content> | ||
<navbar-breadcrumb> | ||
<collection-editor-navbar-breadcrumb> | ||
</collection-editor-navbar-breadcrumb> | ||
</navbar-breadcrumb> | ||
|
||
{% block header_js %} | ||
{{ super() }} | ||
<script type="text/javascript"> | ||
GLOBALS.collectionId = JSON.parse('{{collection_id|js_string}}'); | ||
GLOBALS.INTERACTION_SPECS = JSON.parse('{{INTERACTION_SPECS|js_string}}'); | ||
</script> | ||
{% endblock header_js %} | ||
<nav-options> | ||
<collection-editor-navbar> | ||
</collection-editor-navbar> | ||
</nav-options> | ||
|
||
{% block navbar_breadcrumb %} | ||
<collection-editor-navbar-breadcrumb> | ||
</collection-editor-navbar-breadcrumb> | ||
{% endblock navbar_breadcrumb %} | ||
<content> | ||
<collection-editor-page></collection-editor-page> | ||
</content> | ||
|
||
{% block local_top_nav_options %} | ||
<collection-editor-navbar> | ||
</collection-editor-navbar> | ||
{% endblock local_top_nav_options %} | ||
|
||
{% block content %} | ||
<collection-editor-page></collection-editor-page> | ||
{% endblock content %} | ||
|
||
{% block footer_js %} | ||
{{ super() }} | ||
<!-- This code is used for inserting webpack bundles | ||
https://github.com/jantimon/html-webpack-plugin#writing-your-own-templates --> | ||
<% for (var chunk in htmlWebpackPlugin.files.js) { %> | ||
<% if (webpackConfig.mode == 'production') { %> | ||
<script src="/build/templates/head/dist/<%= htmlWebpackPlugin.files.js[chunk] %>"></script> | ||
<% } else { %> | ||
<script src="/dist/<%= htmlWebpackPlugin.files.js[chunk] %>"></script> | ||
<% } %> | ||
<% } %> | ||
{% endblock footer_js %} | ||
<page-footer></page-footer> | ||
</base-content> | ||
@require('../footer_js_libs.html') | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.