1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-18 20:59:43 +02:00

JS build tweaks

This commit is contained in:
McMatts 2022-03-03 18:21:16 -05:00
parent 6968581e5b
commit 4ed2b3902c
7 changed files with 13 additions and 53 deletions

View file

@ -1,3 +1,3 @@
{
"ignore_dirs": ["tmp", "dist", "dist-prod", "tests", "node_modules"]
"ignore_dirs": ["tmp", "dist", "dist-prod", "tests", "node_modules", "public"]
}

View file

@ -3,7 +3,7 @@
<div class="zone-1" />
<div class="zone-2">
<div class="label color-gray-700">
Documize {{appMeta.edition}} {{appMeta.version}} (build {{appMeta.revision}})
Documize {{appMeta.edition}} {{appMeta.version}} ({{appMeta.revision}})
</div>
</div>
<div class="zone-3" />

View file

@ -23,15 +23,12 @@ export default Router.map(function () {
});
this.route('action', {
path: 'action'
});
this.route('analytics', {
path: 'analytics'
});
this.route('activity', {
path: 'activity'
});
this.route(
@ -41,7 +38,6 @@ export default Router.map(function () {
},
function () {
this.route('settings', {
path: 'settings'
});
this.route('block', {
path: 'block/:block_id'
@ -59,13 +55,10 @@ export default Router.map(function () {
path: 'section/:page_id'
});
this.route('settings', {
path: 'settings'
});
this.route('revisions', {
path: 'revisions'
});
this.route('activity', {
path: 'activity'
});
}
);
@ -77,52 +70,37 @@ export default Router.map(function () {
},
function () {
this.route('general', {
path: 'general'
});
this.route('labels', {
path: 'labels'
});
this.route('groups', {
path: 'groups'
});
this.route('users', {
path: 'users'
});
this.route('folders', {
path: 'folders'
});
this.route('smtp', {
path: 'smtp'
});
this.route('product', {
path: 'product'
});
this.route('notice', {
path: 'notice'
});
this.route('auth', {
path: 'auth'
});
this.route('audit', {
path: 'audit'
});
this.route('search', {
path: 'search'
});
this.route('integrations', {
path: 'integrations'
});
this.route('backup', {
path: 'backup'
});
this.route('billing', {
path: 'billing'
});
}
);
this.route('setup', {
path: 'setup'
});
this.route('secure', {
@ -136,55 +114,39 @@ export default Router.map(function () {
this.route(
'auth',
{
path: 'auth'
},
function () {
this.route('sso', {
path: 'sso/:token'
});
this.route('keycloak', {
path: 'keycloak'
});
this.route('login', {
path: 'login'
});
this.route('forgot', {
path: 'forgot'
});
this.route('reset', {
path: 'reset/:token'
});
this.route('logout', {
path: 'logout'
});
this.route('share', {
path: 'share/:id/:slug/:serial'
});
this.route('cas', {
path: 'cas'
});
}
);
this.route('profile', {
path: 'profile'
});
this.route('profile', {});
this.route('search', {
path: 'search'
});
this.route('search', {});
this.route('accounts', {
path: 'accounts'
});
this.route('accounts', {});
this.route('theming', {
path: 'theming'
});
this.route('theming', {});
this.route('updates', {
path: 'updates'
});
this.route('updates', {});
this.route('auth/login', {
path: '/*wildcard'

View file

@ -49,7 +49,7 @@
<div class="form-group">
<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")}}
<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 class="form-group">
<label for="keycloak-clientId">{{localize 'auth_keycloak_oidc'}}</label>

View file

@ -1,10 +1,10 @@
'use strict';
const browsers = [
'last 2 Edge versions',
'last 1 Edge versions',
'last 1 Chrome versions',
'last 1 Firefox versions',
'last 1 Safari versions'
'last 1 Safari versions'
];
// const isCI = !!process.env.CI;

View file

@ -13,7 +13,7 @@ module.exports = function(defaults) {
fingerprintAssetMap: false,
prepend: '/',
extensions: ['js', 'css'],
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**']
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**', 'i18n/**']
},
minifyCSS: {
@ -40,11 +40,9 @@ module.exports = function(defaults) {
'ember-cli-terser': {
enabled: !isDevelopment,
exclude: ['tinymce/**', 'codemirror/**', 'prism/**', 'pdfjs/**'],
hiddenSourceMap: true,
terser: {
},
hiddenSourceMap: true,
// minifyJS: {
// enabled: !isDevelopment,

View file

@ -1,5 +1,5 @@
{
"name": "community",
"name": "documize",
"version": "5.0.0",
"private": true,
"description": "Documize Community",