mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 14:27:05 +02:00
closes #4978
This commit is contained in:
11
public/src/require-config.js
Normal file
11
public/src/require-config.js
Normal file
@@ -0,0 +1,11 @@
|
||||
require.config({
|
||||
baseUrl: config.relative_path + "/src/modules",
|
||||
waitSeconds: 7,
|
||||
urlArgs: "v=" + config['cache-buster'],
|
||||
paths: {
|
||||
'forum': '../client',
|
||||
'admin': '../admin',
|
||||
'vendor': '../../vendor',
|
||||
'plugins': '../../plugins'
|
||||
}
|
||||
});
|
||||
@@ -26,6 +26,7 @@ module.exports = function(Meta) {
|
||||
'public/vendor/jquery/bootstrap-tagsinput/bootstrap-tagsinput.min.js',
|
||||
'public/vendor/jquery/textcomplete/jquery.textcomplete.js',
|
||||
'public/vendor/requirejs/require.js',
|
||||
'public/src/require-config.js',
|
||||
'public/vendor/bootbox/bootbox.min.js',
|
||||
'public/vendor/tinycon/tinycon.js',
|
||||
'public/vendor/xregexp/xregexp.js',
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
template: "{template.name}",
|
||||
user: JSON.parse('{{userJSON}}'),
|
||||
config: JSON.parse(decodeURIComponent("{{adminConfigJSON}}")),
|
||||
flags: {}
|
||||
flags: {},
|
||||
inAdmin: true
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -30,20 +31,6 @@
|
||||
<script src="https://storage.googleapis.com/code.getmdl.io/1.0.3/material.min.js"></script>
|
||||
<script type="text/javascript" src="{relative_path}/vendor/jquery/sortable/Sortable.js?{cache-buster}"></script>
|
||||
<script type="text/javascript" src="{relative_path}/acp.min.js?{cache-buster}"></script>
|
||||
<script>
|
||||
require.config({
|
||||
baseUrl: "{relative_path}/src/modules",
|
||||
waitSeconds: 3,
|
||||
urlArgs: "{cache-buster}",
|
||||
paths: {
|
||||
'forum': '../client',
|
||||
'admin': '../admin',
|
||||
'vendor': '../../vendor'
|
||||
}
|
||||
});
|
||||
|
||||
app.inAdmin = true;
|
||||
</script>
|
||||
<script type="text/javascript" src="{relative_path}/vendor/colorpicker/colorpicker.js?{cache-buster}"></script>
|
||||
<script type="text/javascript" src="{relative_path}/src/admin/admin.js?{cache-buster}"></script>
|
||||
<script type="text/javascript" src="{relative_path}/vendor/ace/ace.js?{cache-buster}"></script>
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
<script>
|
||||
require.config({
|
||||
baseUrl: "{relative_path}/src/modules",
|
||||
waitSeconds: 3,
|
||||
urlArgs: "v={config.cache-buster}",
|
||||
paths: {
|
||||
'forum': '../client',
|
||||
'admin': '../admin',
|
||||
'vendor': '../../vendor',
|
||||
'plugins': '../../plugins'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user