@operato/shell 9.0.0-beta.0 → 9.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/dist/src/actions/busy.js +1 -1
- package/dist/src/actions/busy.js.map +1 -1
- package/dist/src/actions/index.d.ts +4 -4
- package/dist/src/actions/index.js +4 -4
- package/dist/src/actions/index.js.map +1 -1
- package/dist/src/actions/route.js +2 -2
- package/dist/src/actions/route.js.map +1 -1
- package/dist/src/app/app.d.ts +1 -1
- package/dist/src/app/app.js +11 -9
- package/dist/src/app/app.js.map +1 -1
- package/dist/src/app/pages/page-404.d.ts +1 -1
- package/dist/src/app/pages/page-404.js +18 -18
- package/dist/src/app/pages/page-404.js.map +1 -1
- package/dist/src/app/pages/page-view.js +3 -3
- package/dist/src/app/pages/page-view.js.map +1 -1
- package/dist/src/entries/public/home.js +28 -28
- package/dist/src/entries/public/home.js.map +1 -1
- package/dist/src/index.d.ts +6 -6
- package/dist/src/index.js +6 -6
- package/dist/src/index.js.map +1 -1
- package/dist/src/object-store.js +4 -6
- package/dist/src/object-store.js.map +1 -1
- package/dist/src/reducers/route.js +3 -4
- package/dist/src/reducers/route.js.map +1 -1
- package/dist/src/store.js +3 -3
- package/dist/src/store.js.map +1 -1
- package/dist/src/types/index.d.ts +5 -5
- package/dist/src/types/index.js +5 -5
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/types/privilege.d.ts +2 -2
- package/dist/src/types/privilege.js.map +1 -1
- package/dist/src/types/role.d.ts +3 -3
- package/dist/src/types/role.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -6
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"object-store.js","sourceRoot":"","sources":["../../src/object-store.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH,mBAAmB;AACnB,MAAM,KAAK;
|
1
|
+
{"version":3,"file":"object-store.js","sourceRoot":"","sources":["../../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A;YACzF,KAAK,CAAC,WAAW,CAAC,wBAAwB,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;YAEnE,IAAI,KAAK,GAAG,EAAE,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;YAC5F,KAAK,CAAC,WAAW,CAAC,2BAA2B,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;QACzE,CAAC,CAAA;QAED,OAAO,CAAC,SAAS,GAAG,UAAU,KAAK;YACjC,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA;YAC5C,EAAE,GAAG,OAAO,CAAC,MAAM,CAAA;YACnB,OAAO,CAAC,EAAE,CAAC,CAAA;QACb,CAAC,CAAA;IACH,CAAC,CAAC,CACH,CAAA;AACH,CAAC;AAED,4BAA4B;AAC5B,MAAM,CAAC,MAAM,kBAAkB,GAAkB,QAAQ,CAAC,iBAAiB,CAAC,CAAA;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAAkB,QAAQ,CAAC,eAAe,CAAC,CAAA","sourcesContent":["/*\n * [ Caution ]\n * Since this module is being used by a service worker, be very careful about adding imports or using functions for browsers.\n */\n\ntype OxObjectStore = {\n add: (value: any, key?: IDBValidKey | undefined) => IDBValidKey\n delete: (query: IDBValidKey | IDBKeyRange) => undefined\n clear: () => undefined\n get: (query: IDBValidKey | IDBKeyRange) => any\n getAll: (query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined) => any[]\n getAllKeys: (query?: IDBValidKey | IDBKeyRange | null | undefined, count?: number | undefined) => IDBValidKey[]\n count: (query?: IDBValidKey | IDBKeyRange | undefined) => number\n put: (value: any, key?: IDBValidKey | undefined) => IDBValidKey\n openCursor: (\n query?: IDBValidKey | IDBKeyRange | null | undefined,\n direction?: IDBCursorDirection | undefined\n ) => IDBCursorWithValue | null\n openKeyCursor: (\n query?: IDBValidKey | IDBKeyRange | null | undefined,\n direction?: IDBCursorDirection | undefined\n ) => IDBCursor | null\n limit: (limit?: number) => undefined\n}\n\n/* promise queue */\nclass Queue {\n private static queue: {\n promise: Promise<IDBDatabase>\n resolve: (db: IDBDatabase) => void\n reject: (reason?: any) => void\n }[] = []\n\n private static workingOnPromise: boolean = false\n\n static enqueue(promise: Promise<any>) {\n return new Promise((resolve, reject) => {\n this.queue.push({\n promise,\n resolve,\n reject\n })\n this.dequeue()\n })\n }\n\n static dequeue() {\n if (this.workingOnPromise) {\n return false\n }\n const item = this.queue.shift()\n if (!item) {\n return false\n }\n try {\n this.workingOnPromise = true\n item.promise\n .then(value => {\n this.workingOnPromise = false\n item.resolve(value)\n this.dequeue()\n })\n .catch(err => {\n this.workingOnPromise = false\n item.reject(err)\n this.dequeue()\n })\n } catch (err) {\n this.workingOnPromise = false\n item.reject(err)\n this.dequeue()\n }\n return true\n }\n}\n\nfunction getStore(storeName: string): OxObjectStore {\n return [\n 'add',\n 'delete',\n 'clear',\n 'get',\n 'getAll',\n 'getAllKeys',\n 'count',\n 'put',\n 'openCursor',\n 'openKeyCursor'\n ].reduce(\n (sum, m) => {\n sum[m] = async (...params: any) => {\n const db = (await getIndexDB()) as IDBDatabase\n\n const transaction = db.transaction(storeName, 'readwrite')\n const store = transaction.objectStore(storeName)\n const method: (...p: any) => any = (store as any)[m]\n const request = method.apply(store, params)\n\n return await new Promise((resolve, reject) => {\n request.onsuccess = (event: Event) => {\n resolve((event.target as IDBRequest)?.result)\n }\n\n request.onerror = (event: Event) => {\n reject(event)\n }\n })\n }\n\n return sum\n },\n {\n async limit(this: OxObjectStore, limit = 50) {\n const keys = (await this.getAllKeys()).slice(0, -limit)\n for (let i = 0; i < keys.length; i++) {\n await this.delete(keys[i])\n }\n }\n } as any\n )\n}\n\nfunction getIndexedDB(): IDBFactory {\n if (typeof window !== 'undefined') {\n return window.indexedDB\n } else {\n return self.indexedDB\n }\n}\n\nvar db: IDBDatabase\n\nfunction getIndexDB() {\n if (db) {\n return db\n }\n\n return Queue.enqueue(\n new Promise(function (resolve, reject) {\n const indexedDB = getIndexedDB()\n\n if (!indexedDB) {\n reject('this browser does not support indexedDB')\n }\n const request = indexedDB.open('things-factory-database')\n\n request.onerror = function (event) {\n console.log(\"Why didn't you allow my web app to use IndexedDB?!\")\n reject(event)\n }\n\n request.onupgradeneeded = function (event: IDBVersionChangeEvent) {\n var db: IDBDatabase = (event.target as IDBRequest)?.result\n\n var store = db.createObjectStore('notifications', { keyPath: 'id', autoIncrement: true })\n store.createIndex('notification_id_unqiue', 'id', { unique: true })\n\n var store = db.createObjectStore('client_settings', { keyPath: 'key', autoIncrement: true })\n store.createIndex('client_setting_key_unqiue', 'key', { unique: true })\n }\n\n request.onsuccess = function (event) {\n console.log('IndexedDB opened successfully')\n db = request.result\n resolve(db)\n }\n })\n )\n}\n\n/* ready indexedDB Stores */\nexport const clientSettingStore: OxObjectStore = getStore('client_settings')\nexport const notificationStore: OxObjectStore = getStore('notifications')\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import startCase from 'lodash-es/startCase';
|
1
|
+
import startCase from 'lodash-es/startCase.js';
|
2
2
|
import { updateMetadata } from 'pwa-helpers/metadata.js';
|
3
|
-
import { REGISTER_NAVIGATION_CALLBACK, UNREGISTER_NAVIGATION_CALLBACK, UPDATE_ACTIVE_PAGE, UPDATE_CONTEXT, UPDATE_PAGE } from '../actions/const';
|
3
|
+
import { REGISTER_NAVIGATION_CALLBACK, UNREGISTER_NAVIGATION_CALLBACK, UPDATE_ACTIVE_PAGE, UPDATE_CONTEXT, UPDATE_PAGE } from '../actions/const.js';
|
4
4
|
const APP_TITLE_EL = document.querySelector('meta[name="application-name"]');
|
5
5
|
var appTitle;
|
6
6
|
if (APP_TITLE_EL) {
|
@@ -15,7 +15,6 @@ const INITIAL_STATE = {
|
|
15
15
|
callbacks: []
|
16
16
|
};
|
17
17
|
const route = (state = INITIAL_STATE, action) => {
|
18
|
-
var _a;
|
19
18
|
switch (action.type) {
|
20
19
|
case UPDATE_PAGE:
|
21
20
|
return {
|
@@ -25,7 +24,7 @@ const route = (state = INITIAL_STATE, action) => {
|
|
25
24
|
params: action.params
|
26
25
|
};
|
27
26
|
case UPDATE_CONTEXT:
|
28
|
-
let title =
|
27
|
+
let title = action.context?.title;
|
29
28
|
let text = typeof title === 'object' ? title.text : title;
|
30
29
|
updateMetadata({
|
31
30
|
title: appTitle + (text ? ` - ${startCase(text)}` : '')
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../src/reducers/route.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../src/reducers/route.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,cAAc,EACd,WAAW,EACZ,MAAM,qBAAqB,CAAA;AAE5B,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,+BAA+B,CAAoB,CAAA;AAE/F,IAAI,QAA4B,CAAA;AAChC,IAAI,YAAY,EAAE,CAAC;IACjB,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAA;AACjC,CAAC;AAED,MAAM,aAAa,GAOf;IACF,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,EAAE;IACX,SAAS,EAAE,EAAE;CACd,CAAA;AAED,MAAM,KAAK,GAAG,CAAC,KAAK,GAAG,aAAa,EAAE,MAAW,EAAE,EAAE;IACnD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,WAAW;YACd,OAAO;gBACL,GAAG,KAAK;gBACR,IAAI,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BACK,\n UNREGISTER_NAVIGATION_CALLBACK,\n UPDATE_ACTIVE_PAGE,\n UPDATE_CONTEXT,\n UPDATE_PAGE\n} from '../actions/const.js'\n\nconst APP_TITLE_EL = document.querySelector('meta[name=\"application-name\"]') as HTMLMetaElement\n\nvar appTitle: string | undefined\nif (APP_TITLE_EL) {\n appTitle = APP_TITLE_EL.content\n}\n\nconst INITIAL_STATE: {\n page: string\n resourceId: string\n params: any\n activePage: any\n context: any\n callbacks: any[]\n} = {\n page: '',\n resourceId: '',\n params: {},\n activePage: null,\n context: {},\n callbacks: []\n}\n\nconst route = (state = INITIAL_STATE, action: any) => {\n switch (action.type) {\n case UPDATE_PAGE:\n return {\n ...state,\n page: action.page,\n resourceId: action.resourceId,\n params: action.params\n }\n case UPDATE_CONTEXT:\n let title = action.context?.title\n let text = typeof title === 'object' ? title.text : title\n\n updateMetadata({\n title: appTitle + (text ? ` - ${startCase(text)}` : '')\n })\n return {\n ...state,\n context: action.context || (state.activePage && state.activePage.context) || {}\n }\n case UPDATE_ACTIVE_PAGE:\n return {\n ...state,\n activePage: action.activePage\n }\n\n case REGISTER_NAVIGATION_CALLBACK:\n return {\n ...state,\n callbacks: [...state.callbacks, action.callback]\n }\n case UNREGISTER_NAVIGATION_CALLBACK:\n return {\n ...state,\n callbacks: state.callbacks.filter(callback => callback !== action.callback)\n }\n\n default:\n return state\n }\n}\n\nexport default route\n"]}
|
package/dist/src/store.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { lazyReducerEnhancer } from 'pwa-helpers/lazy-reducer-enhancer.js';
|
2
2
|
import { applyMiddleware, combineReducers, compose, createStore } from 'redux';
|
3
3
|
import thunk from 'redux-thunk';
|
4
|
-
import app from './reducers/app';
|
5
|
-
import route from './reducers/route';
|
6
|
-
import busy from './reducers/busy';
|
4
|
+
import app from './reducers/app.js';
|
5
|
+
import route from './reducers/route.js';
|
6
|
+
import busy from './reducers/busy.js';
|
7
7
|
// Sets up a Chrome extension for time travel debugging.
|
8
8
|
// See https://github.com/zalmoxisus/redux-devtools-extension for more information.
|
9
9
|
const devCompose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
package/dist/src/store.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAa,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAU,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAS,MAAM,OAAO,CAAA;AAC7F,OAAO,KAAK,MAAM,aAAa,CAAA;AAE/B,OAAO,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAa,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAU,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAS,MAAM,OAAO,CAAA;AAC7F,OAAO,KAAK,MAAM,aAAa,CAAA;AAE/B,OAAO,GAAG,MAAM,mBAAmB,CAAA;AACnC,OAAO,KAAK,MAAM,qBAAqB,CAAA;AACvC,OAAO,IAAI,MAAM,oBAAoB,CAAA;AAMrC,wDAAwD;AACxD,mFAAmF;AACnF,MAAM,UAAU,GAAG,MAAM,CAAC,oCAAoC,IAAI,OAAO,CAAA;AAEzE,2FAA2F;AAC3F,IAAI,OAAO,MAAM,CAAC,OAAO,IAAI,WAAW,EAAE,CAAC;IACzC,MAAM,CAAC,OAAO,GAAG;QACf,GAAG,EAAE;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;SACxC;KACK,CAAA;AACV,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAA4C,WAAW,CACvE,KAAK,CAAC,EAAE,CAAC,KAAK,EACd,UAAU,CAAC,mBAAmB,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,CACzE,CAAA;AAED,6BAA6B;AAC7B,KAAK,CAAC,WAAW,CAAC;IAChB,GAAG;IACH,KAAK;IACL,IAAI;CACL,CAAC,CAAA","sourcesContent":["import { lazyReducerEnhancer, LazyStore } from 'pwa-helpers/lazy-reducer-enhancer.js'\nimport { Action, applyMiddleware, combineReducers, compose, createStore, Store } from 'redux'\nimport thunk from 'redux-thunk'\n\nimport app from './reducers/app.js'\nimport route from './reducers/route.js'\nimport busy from './reducers/busy.js'\n\ndeclare global {\n var __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any\n}\n\n// Sets up a Chrome extension for time travel debugging.\n// See https://github.com/zalmoxisus/redux-devtools-extension for more information.\nconst devCompose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose\n\n// Only for providing test environment - combineReducers 에서 process.env.NODE_ENV를 접근하기 때문에.\nif (typeof window.process == 'undefined') {\n window.process = {\n env: {\n NODE_ENV: JSON.stringify('development')\n }\n } as any\n}\n\nexport const store: Store<unknown, Action<any>> & LazyStore = createStore(\n state => state,\n devCompose(lazyReducerEnhancer(combineReducers), applyMiddleware(thunk))\n)\n\n// Initially loaded reducers.\nstore.addReducers({\n app,\n route,\n busy\n})\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from './domain';
|
2
|
-
export * from './privilege';
|
3
|
-
export * from './role';
|
4
|
-
export * from './user';
|
5
|
-
export * from './types';
|
1
|
+
export * from './domain.js';
|
2
|
+
export * from './privilege.js';
|
3
|
+
export * from './role.js';
|
4
|
+
export * from './user.js';
|
5
|
+
export * from './types.js';
|
package/dist/src/types/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from './domain';
|
2
|
-
export * from './privilege';
|
3
|
-
export * from './role';
|
4
|
-
export * from './user';
|
5
|
-
export * from './types';
|
1
|
+
export * from './domain.js';
|
2
|
+
export * from './privilege.js';
|
3
|
+
export * from './role.js';
|
4
|
+
export * from './user.js';
|
5
|
+
export * from './types.js';
|
6
6
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA","sourcesContent":["export * from './domain.js'\nexport * from './privilege.js'\nexport * from './role.js'\nexport * from './user.js'\nexport * from './types.js'\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privilege.js","sourceRoot":"","sources":["../../../src/types/privilege.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,SAAS;CAwBrB","sourcesContent":["import { Role } from './role'\nimport { User } from './user'\n\nexport class Privilege {\n id?: string\n\n name?: string\n\n category?: string\n\n nullable?: true\n\n description?: string\n\n roles?: Role[]\n\n creator?: User\n\n creatorId?: string\n\n updater?: User\n\n updaterId?: string\n\n createdAt?: Date\n\n updatedAt?: Date\n}\n"]}
|
1
|
+
{"version":3,"file":"privilege.js","sourceRoot":"","sources":["../../../src/types/privilege.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,SAAS;CAwBrB","sourcesContent":["import { Role } from './role.js'\nimport { User } from './user.js'\n\nexport class Privilege {\n id?: string\n\n name?: string\n\n category?: string\n\n nullable?: true\n\n description?: string\n\n roles?: Role[]\n\n creator?: User\n\n creatorId?: string\n\n updater?: User\n\n updaterId?: string\n\n createdAt?: Date\n\n updatedAt?: Date\n}\n"]}
|
package/dist/src/types/role.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Domain } from './domain';
|
2
|
-
import { User } from './user';
|
3
|
-
import { Privilege } from './privilege';
|
1
|
+
import { Domain } from './domain.js';
|
2
|
+
import { User } from './user.js';
|
3
|
+
import { Privilege } from './privilege.js';
|
4
4
|
export declare class Role {
|
5
5
|
readonly id?: string;
|
6
6
|
domain?: Domain;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../../src/types/role.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,IAAI;CA4BhB","sourcesContent":["import { Domain } from './domain'\nimport { User } from './user'\nimport { Privilege } from './privilege'\n\nexport class Role {\n readonly id?: string\n\n domain?: Domain\n\n domainId?: string\n\n name?: string\n\n users?: User[]\n\n privileges?: Privilege[]\n\n nullable?: true\n\n description?: string\n\n creator?: User\n\n creatorId?: string\n\n updater?: User\n\n updaterId?: string\n\n createdAt?: Date\n\n updatedAt?: Date\n}\n"]}
|
1
|
+
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../../src/types/role.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,IAAI;CA4BhB","sourcesContent":["import { Domain } from './domain.js'\nimport { User } from './user.js'\nimport { Privilege } from './privilege.js'\n\nexport class Role {\n readonly id?: string\n\n domain?: Domain\n\n domainId?: string\n\n name?: string\n\n users?: User[]\n\n privileges?: Privilege[]\n\n nullable?: true\n\n description?: string\n\n creator?: User\n\n creatorId?: string\n\n updater?: User\n\n updaterId?: string\n\n createdAt?: Date\n\n updatedAt?: Date\n}\n"]}
|