mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
JS build tweaks
This commit is contained in:
parent
6968581e5b
commit
4ed2b3902c
7 changed files with 13 additions and 53 deletions
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"ignore_dirs": ["tmp", "dist", "dist-prod", "tests", "node_modules"]
|
"ignore_dirs": ["tmp", "dist", "dist-prod", "tests", "node_modules", "public"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="zone-1" />
|
<div class="zone-1" />
|
||||||
<div class="zone-2">
|
<div class="zone-2">
|
||||||
<div class="label color-gray-700">
|
<div class="label color-gray-700">
|
||||||
Documize {{appMeta.edition}} {{appMeta.version}} (build {{appMeta.revision}})
|
Documize {{appMeta.edition}} {{appMeta.version}} ({{appMeta.revision}})
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="zone-3" />
|
<div class="zone-3" />
|
||||||
|
|
|
@ -23,15 +23,12 @@ export default Router.map(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.route('action', {
|
this.route('action', {
|
||||||
path: 'action'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.route('analytics', {
|
this.route('analytics', {
|
||||||
path: 'analytics'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.route('activity', {
|
this.route('activity', {
|
||||||
path: 'activity'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.route(
|
this.route(
|
||||||
|
@ -41,7 +38,6 @@ export default Router.map(function () {
|
||||||
},
|
},
|
||||||
function () {
|
function () {
|
||||||
this.route('settings', {
|
this.route('settings', {
|
||||||
path: 'settings'
|
|
||||||
});
|
});
|
||||||
this.route('block', {
|
this.route('block', {
|
||||||
path: 'block/:block_id'
|
path: 'block/:block_id'
|
||||||
|
@ -59,13 +55,10 @@ export default Router.map(function () {
|
||||||
path: 'section/:page_id'
|
path: 'section/:page_id'
|
||||||
});
|
});
|
||||||
this.route('settings', {
|
this.route('settings', {
|
||||||
path: 'settings'
|
|
||||||
});
|
});
|
||||||
this.route('revisions', {
|
this.route('revisions', {
|
||||||
path: 'revisions'
|
|
||||||
});
|
});
|
||||||
this.route('activity', {
|
this.route('activity', {
|
||||||
path: 'activity'
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -77,52 +70,37 @@ export default Router.map(function () {
|
||||||
},
|
},
|
||||||
function () {
|
function () {
|
||||||
this.route('general', {
|
this.route('general', {
|
||||||
path: 'general'
|
|
||||||
});
|
});
|
||||||
this.route('labels', {
|
this.route('labels', {
|
||||||
path: 'labels'
|
|
||||||
});
|
});
|
||||||
this.route('groups', {
|
this.route('groups', {
|
||||||
path: 'groups'
|
|
||||||
});
|
});
|
||||||
this.route('users', {
|
this.route('users', {
|
||||||
path: 'users'
|
|
||||||
});
|
});
|
||||||
this.route('folders', {
|
this.route('folders', {
|
||||||
path: 'folders'
|
|
||||||
});
|
});
|
||||||
this.route('smtp', {
|
this.route('smtp', {
|
||||||
path: 'smtp'
|
|
||||||
});
|
});
|
||||||
this.route('product', {
|
this.route('product', {
|
||||||
path: 'product'
|
|
||||||
});
|
});
|
||||||
this.route('notice', {
|
this.route('notice', {
|
||||||
path: 'notice'
|
|
||||||
});
|
});
|
||||||
this.route('auth', {
|
this.route('auth', {
|
||||||
path: 'auth'
|
|
||||||
});
|
});
|
||||||
this.route('audit', {
|
this.route('audit', {
|
||||||
path: 'audit'
|
|
||||||
});
|
});
|
||||||
this.route('search', {
|
this.route('search', {
|
||||||
path: 'search'
|
|
||||||
});
|
});
|
||||||
this.route('integrations', {
|
this.route('integrations', {
|
||||||
path: 'integrations'
|
|
||||||
});
|
});
|
||||||
this.route('backup', {
|
this.route('backup', {
|
||||||
path: 'backup'
|
|
||||||
});
|
});
|
||||||
this.route('billing', {
|
this.route('billing', {
|
||||||
path: 'billing'
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
this.route('setup', {
|
this.route('setup', {
|
||||||
path: 'setup'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.route('secure', {
|
this.route('secure', {
|
||||||
|
@ -136,55 +114,39 @@ export default Router.map(function () {
|
||||||
this.route(
|
this.route(
|
||||||
'auth',
|
'auth',
|
||||||
{
|
{
|
||||||
path: 'auth'
|
|
||||||
},
|
},
|
||||||
function () {
|
function () {
|
||||||
this.route('sso', {
|
this.route('sso', {
|
||||||
path: 'sso/:token'
|
path: 'sso/:token'
|
||||||
});
|
});
|
||||||
this.route('keycloak', {
|
this.route('keycloak', {
|
||||||
path: 'keycloak'
|
|
||||||
});
|
});
|
||||||
this.route('login', {
|
this.route('login', {
|
||||||
path: 'login'
|
|
||||||
});
|
});
|
||||||
this.route('forgot', {
|
this.route('forgot', {
|
||||||
path: 'forgot'
|
|
||||||
});
|
});
|
||||||
this.route('reset', {
|
this.route('reset', {
|
||||||
path: 'reset/:token'
|
path: 'reset/:token'
|
||||||
});
|
});
|
||||||
this.route('logout', {
|
this.route('logout', {
|
||||||
path: 'logout'
|
|
||||||
});
|
});
|
||||||
this.route('share', {
|
this.route('share', {
|
||||||
path: 'share/:id/:slug/:serial'
|
path: 'share/:id/:slug/:serial'
|
||||||
});
|
});
|
||||||
this.route('cas', {
|
this.route('cas', {
|
||||||
path: 'cas'
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
this.route('profile', {
|
this.route('profile', {});
|
||||||
path: 'profile'
|
|
||||||
});
|
|
||||||
|
|
||||||
this.route('search', {
|
this.route('search', {});
|
||||||
path: 'search'
|
|
||||||
});
|
|
||||||
|
|
||||||
this.route('accounts', {
|
this.route('accounts', {});
|
||||||
path: 'accounts'
|
|
||||||
});
|
|
||||||
|
|
||||||
this.route('theming', {
|
this.route('theming', {});
|
||||||
path: 'theming'
|
|
||||||
});
|
|
||||||
|
|
||||||
this.route('updates', {
|
this.route('updates', {});
|
||||||
path: 'updates'
|
|
||||||
});
|
|
||||||
|
|
||||||
this.route('auth/login', {
|
this.route('auth/login', {
|
||||||
path: '/*wildcard'
|
path: '/*wildcard'
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="keycloak-publicKey">{{localize 'auth_keycloak_pk'}}</label>
|
<label for="keycloak-publicKey">{{localize 'auth_keycloak_pk'}}</label>
|
||||||
{{textarea id="keycloak-publicKey" type="text" value=keycloakConfig.publicKey rows=7 class=(if KeycloakPublicKeyError "form-control is-invalid" "form-control")}}
|
{{textarea id="keycloak-publicKey" type="text" value=keycloakConfig.publicKey rows=7 class=(if KeycloakPublicKeyError "form-control is-invalid" "form-control")}}
|
||||||
<small class="form-text text-muted">{{localize 'auth_keylcloak_pk_explain'}}</small>
|
<small class="form-text text-muted">{{localize 'auth_keycloak_pk_explain'}}</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="keycloak-clientId">{{localize 'auth_keycloak_oidc'}}</label>
|
<label for="keycloak-clientId">{{localize 'auth_keycloak_oidc'}}</label>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const browsers = [
|
const browsers = [
|
||||||
'last 2 Edge versions',
|
'last 1 Edge versions',
|
||||||
'last 1 Chrome versions',
|
'last 1 Chrome versions',
|
||||||
'last 1 Firefox versions',
|
'last 1 Firefox versions',
|
||||||
'last 1 Safari versions'
|
'last 1 Safari versions'
|
||||||
|
|
|
@ -13,7 +13,7 @@ module.exports = function(defaults) {
|
||||||
fingerprintAssetMap: false,
|
fingerprintAssetMap: false,
|
||||||
prepend: '/',
|
prepend: '/',
|
||||||
extensions: ['js', 'css'],
|
extensions: ['js', 'css'],
|
||||||
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**']
|
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**', 'i18n/**']
|
||||||
},
|
},
|
||||||
|
|
||||||
minifyCSS: {
|
minifyCSS: {
|
||||||
|
@ -40,11 +40,9 @@ module.exports = function(defaults) {
|
||||||
'ember-cli-terser': {
|
'ember-cli-terser': {
|
||||||
enabled: !isDevelopment,
|
enabled: !isDevelopment,
|
||||||
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**'],
|
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**'],
|
||||||
|
|
||||||
hiddenSourceMap: true,
|
|
||||||
|
|
||||||
terser: {
|
terser: {
|
||||||
},
|
},
|
||||||
|
hiddenSourceMap: true,
|
||||||
|
|
||||||
// minifyJS: {
|
// minifyJS: {
|
||||||
// enabled: !isDevelopment,
|
// enabled: !isDevelopment,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "community",
|
"name": "documize",
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Documize Community",
|
"description": "Documize Community",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue