mirror of
https://github.com/documize/community.git
synced 2025-07-19 21:29:42 +02:00
Upgrade UI framework to Ember v3.10.0
This commit is contained in:
parent
49bf4eeaa0
commit
479508e436
22 changed files with 68656 additions and 1745 deletions
|
@ -49,7 +49,7 @@ All you need to provide is PostgreSQL, Microsoft SQL Server or any MySQL variant
|
||||||
## Technology Stack
|
## Technology Stack
|
||||||
|
|
||||||
- Go (v1.12.5)
|
- Go (v1.12.5)
|
||||||
- Ember JS (v3.8.0)
|
- Ember JS (v3.10.0)
|
||||||
|
|
||||||
## Authentication Options
|
## Authentication Options
|
||||||
|
|
||||||
|
|
2341
embed/bindata.go
2341
embed/bindata.go
File diff suppressed because one or more lines are too long
|
@ -24,7 +24,10 @@ module.exports = {
|
||||||
'.template-lintrc.js',
|
'.template-lintrc.js',
|
||||||
'ember-cli-build.js',
|
'ember-cli-build.js',
|
||||||
'testem.js',
|
'testem.js',
|
||||||
'config/**/*.js'
|
'blueprints/*/index.js',
|
||||||
|
'config/**/*.js',
|
||||||
|
'lib/*/index.js',
|
||||||
|
'server/**/*.js'
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
sourceType: 'script',
|
sourceType: 'script',
|
||||||
|
@ -42,7 +45,15 @@ module.exports = {
|
||||||
excludedFiles: ['tests/dummy/**/*.js'],
|
excludedFiles: ['tests/dummy/**/*.js'],
|
||||||
env: {
|
env: {
|
||||||
embertest: true
|
embertest: true
|
||||||
}
|
},
|
||||||
|
plugins: ['node'],
|
||||||
|
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
|
||||||
|
// add your custom rules and overrides for node files here
|
||||||
|
|
||||||
|
// this can be removed once the following is fixed
|
||||||
|
// https://github.com/mysticatea/eslint-plugin-node/issues/77
|
||||||
|
'node/no-unpublished-require': 'off'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
@ -11,7 +11,6 @@ module.exports = {
|
||||||
'no-invalid-interactive': false,
|
'no-invalid-interactive': false,
|
||||||
'no-nested-interactive': false,
|
'no-nested-interactive': false,
|
||||||
'no-triple-curlies': false,
|
'no-triple-curlies': false,
|
||||||
'no-global-jquery': false,
|
|
||||||
'style-concatenation': false,
|
'style-concatenation': false,
|
||||||
'simple-unless': false,
|
'simple-unless': false,
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,11 +85,12 @@ export default Component.extend(ModalMixin, Notifier, {
|
||||||
this.set('ldapPreview', {isError: true, message: 'Unable to connect'});
|
this.set('ldapPreview', {isError: true, message: 'Unable to connect'});
|
||||||
|
|
||||||
switch (provider) {
|
switch (provider) {
|
||||||
case constants.AuthProvider.Documize:
|
case constants.AuthProvider.Documize: {
|
||||||
// nothing to do
|
// nothing to do
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case constants.AuthProvider.Keycloak: // eslint-disable-line no-case-declarations
|
case constants.AuthProvider.Keycloak: {
|
||||||
let config = this.get('authConfig');
|
let config = this.get('authConfig');
|
||||||
|
|
||||||
if (_.isUndefined(config) || _.isNull(config) || _.isEmpty(config) ) {
|
if (_.isUndefined(config) || _.isNull(config) || _.isEmpty(config) ) {
|
||||||
|
@ -103,8 +104,9 @@ export default Component.extend(ModalMixin, Notifier, {
|
||||||
|
|
||||||
this.set('keycloakConfig', config);
|
this.set('keycloakConfig', config);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case constants.AuthProvider.LDAP: // eslint-disable-line no-case-declarations
|
case constants.AuthProvider.LDAP: {
|
||||||
let ldapConfig = this.get('authConfig');
|
let ldapConfig = this.get('authConfig');
|
||||||
|
|
||||||
if (_.isUndefined(ldapConfig) || _.isNull(ldapConfig) || _.isEmpty(ldapConfig) ) {
|
if (_.isUndefined(ldapConfig) || _.isNull(ldapConfig) || _.isEmpty(ldapConfig) ) {
|
||||||
|
@ -118,6 +120,7 @@ export default Component.extend(ModalMixin, Notifier, {
|
||||||
|
|
||||||
this.set('ldapConfig', ldapConfig);
|
this.set('ldapConfig', ldapConfig);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
// https://documize.com
|
// https://documize.com
|
||||||
|
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import { observer } from '@ember/object';
|
|
||||||
import { inject as service } from '@ember/service';
|
import { inject as service } from '@ember/service';
|
||||||
import { schedule, debounce } from '@ember/runloop';
|
import { schedule, debounce } from '@ember/runloop';
|
||||||
import AuthProvider from '../../mixins/auth';
|
import AuthProvider from '../../mixins/auth';
|
||||||
|
@ -51,15 +50,15 @@ export default Component.extend(AuthProvider, ModalMixin, Notifier, {
|
||||||
this.set('users', users);
|
this.set('users', users);
|
||||||
},
|
},
|
||||||
|
|
||||||
onKeywordChange: observer('filter', function() {
|
|
||||||
debounce(this, this.filterUsers, 350);
|
|
||||||
}),
|
|
||||||
|
|
||||||
filterUsers() {
|
filterUsers() {
|
||||||
this.get('onFilter')(this.get('filter'));
|
this.get('onFilter')(this.get('filter'));
|
||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
onFilterChange() {
|
||||||
|
debounce(this, this.filterUsers, 350);
|
||||||
|
},
|
||||||
|
|
||||||
togglePerms() {
|
togglePerms() {
|
||||||
this.set('showPermExplain', !this.get('showPermExplain'));
|
this.set('showPermExplain', !this.get('showPermExplain'));
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ export default Component.extend(Notifier, Modals, {
|
||||||
return this.get('blocks.length') > 0;
|
return this.get('blocks.length') > 0;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
// eslint-disable-next-line ember/no-observers
|
||||||
onModalToggle: observer('show', function() {
|
onModalToggle: observer('show', function() {
|
||||||
let modalId = this.get('modalId');
|
let modalId = this.get('modalId');
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,12 @@ export default Component.extend(ModalMixin, {
|
||||||
canDelete: false,
|
canDelete: false,
|
||||||
canMove: false,
|
canMove: false,
|
||||||
docSearchFilter: '',
|
docSearchFilter: '',
|
||||||
|
|
||||||
|
// eslint-disable-next-line ember/no-observers
|
||||||
onKeywordChange: observer('docSearchFilter', function() {
|
onKeywordChange: observer('docSearchFilter', function() {
|
||||||
debounce(this, this.searchDocs, 750);
|
debounce(this, this.searchDocs, 750);
|
||||||
}),
|
}),
|
||||||
|
|
||||||
emptySearch: computed('docSearchResults', function() {
|
emptySearch: computed('docSearchResults', function() {
|
||||||
return this.get('docSearchResults.length') === 0;
|
return this.get('docSearchResults.length') === 0;
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -130,6 +130,7 @@ export default Component.extend({
|
||||||
), '*');
|
), '*');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// eslint-disable-next-line ember/no-observers
|
||||||
goSave: observer('readyToSave', function() {
|
goSave: observer('readyToSave', function() {
|
||||||
if (this.get('readyToSave')) {
|
if (this.get('readyToSave')) {
|
||||||
let page = this.get('page');
|
let page = this.get('page');
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
{{ui/ui-spacer size=300}}
|
{{ui/ui-spacer size=300}}
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{{focus-input type="text" class="form-control" placeholder="filter users" value=filter}}
|
{{focus-input type="text" class="form-control" placeholder="filter users" value=filter key-up=(action "onFilterChange")}}
|
||||||
<small class="form-text text-muted">search firstname, lastname, email</small>
|
<small class="form-text text-muted">search firstname, lastname, email</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div class="document-sidebar-attachment">
|
<div class="document-sidebar-attachment">
|
||||||
<ul class="files">
|
<ul class="files">
|
||||||
{{#each files key="id" as |file|}}
|
{{#each files key="id" as |file|}}
|
||||||
{{#if (eq file.pageId '')}}
|
{{#if (eq file.pageId "")}}
|
||||||
<li class="file">
|
<li class="file">
|
||||||
<a href="{{appMeta.endpoint}}/public/attachment/{{appMeta.orgId}}/{{file.id}}{{downloadQuery}}">
|
<a href="{{appMeta.endpoint}}/public/attachment/{{appMeta.orgId}}/{{file.id}}{{downloadQuery}}">
|
||||||
{{file.filename}}
|
{{file.filename}}
|
||||||
|
|
|
@ -21,13 +21,13 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="new-space-name">Sidebar</label>
|
<label for="new-space-name">Sidebar</label>
|
||||||
<select onchange={{action "onSetSidebar" value="target.value"}} class="form-control">
|
<select onchange={{action "onSetSidebar" value="target.value"}} class="form-control">
|
||||||
<option value="none" selected={{is-equal pdfOption.sidebar 'none'}}>
|
<option value="none" selected={{is-equal pdfOption.sidebar "none"}}>
|
||||||
None
|
None
|
||||||
</option>
|
</option>
|
||||||
<option value="bookmarks" selected={{is-equal pdfOption.sidebar 'bookmarks'}}>
|
<option value="bookmarks" selected={{is-equal pdfOption.sidebar "bookmarks"}}>
|
||||||
Bookmarks
|
Bookmarks
|
||||||
</option>
|
</option>
|
||||||
<option value="thumbs" selected={{is-equal pdfOption.sidebar 'thumbs'}}>
|
<option value="thumbs" selected={{is-equal pdfOption.sidebar "thumbs"}}>
|
||||||
Thumbnails
|
Thumbnails
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable no-useless-escape */
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||||
//
|
//
|
||||||
// This software (Documize Community Edition) is licensed under
|
// This software (Documize Community Edition) is licensed under
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "documize",
|
"name": "documize",
|
||||||
"version": "2.5.0",
|
"version": "2.5.1",
|
||||||
"description": "The Document IDE",
|
"description": "The Document IDE",
|
||||||
"repository": "",
|
"repository": "",
|
||||||
"license": "AGPL",
|
"license": "AGPL",
|
||||||
"author": "Documize Inc.",
|
"author": "Documize",
|
||||||
"directories": {
|
"directories": {
|
||||||
"doc": "doc",
|
"doc": "doc",
|
||||||
"test": "tests"
|
"test": "tests"
|
||||||
|
@ -26,42 +26,42 @@
|
||||||
"broccoli-asset-rev": "^3.0.0",
|
"broccoli-asset-rev": "^3.0.0",
|
||||||
"ember-ajax": "^3.1.0",
|
"ember-ajax": "^3.1.0",
|
||||||
"ember-attacher": "^0.13.10",
|
"ember-attacher": "^0.13.10",
|
||||||
"ember-cli": "~3.8.0",
|
"ember-cli": "~3.10.0",
|
||||||
"ember-cli-app-version": "^3.2.0",
|
"ember-cli-app-version": "^3.2.0",
|
||||||
"ember-cli-babel": "^7.5.0",
|
"ember-cli-babel": "^7.7.3",
|
||||||
"ember-cli-dependency-checker": "^3.1.0",
|
"ember-cli-dependency-checker": "^3.1.0",
|
||||||
"ember-cli-eslint": "^5.1.0",
|
"ember-cli-eslint": "^5.1.0",
|
||||||
"ember-cli-htmlbars": "^3.0.0",
|
"ember-cli-htmlbars": "^3.0.1",
|
||||||
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
|
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
|
||||||
"ember-cli-inject-live-reload": "^2.0.1",
|
"ember-cli-inject-live-reload": "^2.0.1",
|
||||||
"ember-cli-mirage": "^0.4.15",
|
"ember-cli-mirage": "^0.4.15",
|
||||||
"ember-cli-sass": "10.0.0",
|
"ember-cli-sass": "10.0.0",
|
||||||
"ember-cli-sri": "^2.1.1",
|
"ember-cli-sri": "^2.1.1",
|
||||||
"ember-cli-template-lint": "^1.0.0-beta.1",
|
"ember-cli-template-lint": "^1.0.0-beta.1",
|
||||||
"ember-cli-uglify": "^2.1.0",
|
"ember-cli-uglify": "^3.0.0",
|
||||||
"ember-cli-update": "^0.30.0",
|
"ember-cli-update": "^0.34.7",
|
||||||
"ember-concurrency": "^0.8.27",
|
"ember-concurrency": "^0.10.0",
|
||||||
"ember-data": "~3.8.0",
|
"ember-data": "~3.10.0",
|
||||||
"ember-export-application-global": "^2.0.0",
|
"ember-export-application-global": "^2.0.0",
|
||||||
"ember-load-initializers": "^2.0.0",
|
"ember-load-initializers": "^2.0.0",
|
||||||
"ember-maybe-import-regenerator": "^0.1.6",
|
"ember-maybe-import-regenerator": "^0.1.6",
|
||||||
"ember-qunit": "^4.4.1",
|
"ember-qunit": "^4.4.1",
|
||||||
"ember-resolver": "^5.1.3",
|
"ember-resolver": "^5.1.3",
|
||||||
"ember-simple-auth": "^1.8.1",
|
"ember-simple-auth": "^1.8.2",
|
||||||
"ember-source": "~3.8.0",
|
"ember-source": "~3.10.0",
|
||||||
"ember-toggle": "^5.3.2",
|
"ember-toggle": "^5.3.2",
|
||||||
"ember-truth-helpers": "^2.1.0",
|
"ember-truth-helpers": "^2.1.0",
|
||||||
"eslint": "^5.14.1",
|
"eslint-plugin-ember": "^6.4.1",
|
||||||
"eslint-plugin-ember": "^6.2.0",
|
"eslint-plugin-node": "^8.0.1",
|
||||||
"loader.js": "^4.7.0",
|
"loader.js": "^4.7.0",
|
||||||
"qunit-dom": "^0.8.4"
|
"qunit-dom": "^0.8.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "^4.2.1",
|
"bootstrap": "^4.2.1",
|
||||||
"nan": "git+https://github.com/nodejs/nan.git",
|
"nan": "git+https://github.com/nodejs/nan.git",
|
||||||
"node-sass": "^4.12.0",
|
"node-sass": "^4.12.0",
|
||||||
"npm": "^6.7.0",
|
"npm": "^6.9.0",
|
||||||
"pdfjs-dist": "^2.0.943",
|
"pdfjs-dist": "^2.0.943",
|
||||||
"popper.js": "^1.14.7"
|
"popper.js": "^1.15.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
19365
gui/public/pdfjs/build/pdf.js
Normal file
19365
gui/public/pdfjs/build/pdf.js
Normal file
File diff suppressed because it is too large
Load diff
1
gui/public/pdfjs/build/pdf.js.map
Normal file
1
gui/public/pdfjs/build/pdf.js.map
Normal file
File diff suppressed because one or more lines are too long
47057
gui/public/pdfjs/build/pdf.worker.js
vendored
Normal file
47057
gui/public/pdfjs/build/pdf.worker.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
gui/public/pdfjs/build/pdf.worker.js.map
vendored
Normal file
1
gui/public/pdfjs/build/pdf.worker.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,11 @@
|
||||||
import { click, fillIn, find, findAll, currentURL, visit } from '@ember/test-helpers';
|
import {
|
||||||
|
click,
|
||||||
|
fillIn,
|
||||||
|
find,
|
||||||
|
findAll,
|
||||||
|
currentURL,
|
||||||
|
visit
|
||||||
|
} from '@ember/test-helpers';
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||||
//
|
//
|
||||||
// This software (Documize Community Edition) is licensed under
|
// This software (Documize Community Edition) is licensed under
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
import { click, fillIn, find, currentURL, visit } from '@ember/test-helpers';
|
import {
|
||||||
|
click,
|
||||||
|
fillIn,
|
||||||
|
find,
|
||||||
|
currentURL,
|
||||||
|
visit
|
||||||
|
} from '@ember/test-helpers';
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||||
//
|
//
|
||||||
// This software (Documize Community Edition) is licensed under
|
// This software (Documize Community Edition) is licensed under
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
import { click, fillIn, find, findAll, currentURL, visit } from '@ember/test-helpers';
|
import {
|
||||||
|
click,
|
||||||
|
fillIn,
|
||||||
|
find,
|
||||||
|
findAll,
|
||||||
|
currentURL,
|
||||||
|
visit
|
||||||
|
} from '@ember/test-helpers';
|
||||||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||||
//
|
//
|
||||||
// This software (Documize Community Edition) is licensed under
|
// This software (Documize Community Edition) is licensed under
|
||||||
|
|
1526
gui/yarn.lock
1526
gui/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue