oksy 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/boot.js +20 -20
  2. package/library.js +1 -1
  3. package/package.json +1 -1
  4. package/tsconfig.json +0 -2
  5. package/types/src/Bootstrap/SqliteClient.d.ts +1 -1
  6. package/types/src/Frontend/Controllers/ForgotPasswordController.d.ts +2 -2
  7. package/types/src/Frontend/Controllers/LoginController.d.ts +3 -3
  8. package/types/src/Frontend/Controllers/PageController.d.ts +3 -3
  9. package/types/src/Frontend/Controllers/RegisterController.d.ts +3 -3
  10. package/types/src/Frontend/Controllers/ResetPasswordController.d.ts +3 -3
  11. package/types/src/Frontend/Controllers/ResumeSessionController.d.ts +2 -2
  12. package/types/src/Frontend/View/BasePage.d.ts +2 -2
  13. package/types/src/Frontend/View/Components/Button.d.ts +1 -1
  14. package/types/src/Frontend/View/Components/DataTable.d.ts +1 -1
  15. package/types/src/Helper/PasswordResetLink.d.ts +1 -1
  16. package/types/src/Helper/Seeder.d.ts +2 -2
  17. package/types/src/ReactiveStore/BaseEntity.d.ts +1 -1
  18. package/types/src/ReactiveStore/HydrateReactiveStore.d.ts +1 -1
  19. package/types/src/ReactiveStore/Many.d.ts +2 -2
  20. package/types/src/ReactiveStore/ModelMaker.d.ts +2 -2
  21. package/types/src/ReactiveStore/ModelValidator.d.ts +1 -1
  22. package/types/src/ReactiveStore/Proxify.d.ts +2 -2
  23. package/types/src/ReactiveStore/ReactiveStore.d.ts +2 -2
  24. package/types/src/Server/RegisterFileUploader.d.ts +1 -1
  25. package/types/src/Server/RegisterSocketServer.d.ts +3 -3
  26. package/types/src/Server/Socket/PageManager.d.ts +1 -1
  27. package/types/src/Server/Socket/SessionManager.d.ts +2 -2
  28. package/types/src/Server/StartWebServer.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oksy",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "The OKSY framework",
5
5
  "main": "library.js",
6
6
  "typings": "./types/src/library.pub.d.ts",
package/tsconfig.json CHANGED
@@ -8,8 +8,6 @@
8
8
  "strictPropertyInitialization": false,
9
9
  "paths": {
10
10
  "oksy": ["./types/src/library.pub"],
11
- "@src/*": ["./types/src/*"],
12
- "@lang/*": ["./types/lang/*"],
13
11
  },
14
12
  },
15
13
  "esModuleInterop": true,
@@ -1,6 +1,6 @@
1
1
  import { Knex } from 'knex';
2
2
  import { SqlTable } from './OrganizeSqlTables';
3
- import { SqlQueue } from '@src/SqlQueue/SqlQueue';
3
+ import { SqlQueue } from './../SqlQueue/SqlQueue';
4
4
  export declare class SqliteClient {
5
5
  sqlite: Knex;
6
6
  sqlQueue: SqlQueue;
@@ -1,5 +1,5 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { IMailer } from '@src/Mailer/IMailer';
1
+ import { SqliteClient } from './../../Bootstrap/SqliteClient';
2
+ import { IMailer } from './../../Mailer/IMailer';
3
3
  export declare type ForgotPasswordPayload = {
4
4
  email: string;
5
5
  };
@@ -1,6 +1,6 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { ReactiveStore } from '@src/ReactiveStore/ReactiveStore';
3
- import { Session } from '@src/Server/Socket/SessionManager';
1
+ import { SqliteClient } from './../../Bootstrap/SqliteClient';
2
+ import { ReactiveStore } from './../../ReactiveStore/ReactiveStore';
3
+ import { Session } from './../../Server/Socket/SessionManager';
4
4
  export declare type LoginResponse = {
5
5
  status: false;
6
6
  } | {
@@ -1,6 +1,6 @@
1
- import { Session, SessionManager } from '@src/Server/Socket/SessionManager';
2
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
3
- import { PageManager } from '@src/Server/Socket/PageManager';
1
+ import { Session, SessionManager } from './../../Server/Socket/SessionManager';
2
+ import { SqliteClient } from './../../Bootstrap/SqliteClient';
3
+ import { PageManager } from './../../Server/Socket/PageManager';
4
4
  export declare type URL = {
5
5
  path: string;
6
6
  query: {
@@ -1,6 +1,6 @@
1
- import { Session } from '@src/Server/Socket/SessionManager';
2
- import { ReactiveStore } from '@src/ReactiveStore/ReactiveStore';
3
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
1
+ import { Session } from './../../Server/Socket/SessionManager';
2
+ import { ReactiveStore } from './../../ReactiveStore/ReactiveStore';
3
+ import { SqliteClient } from './../../Bootstrap/SqliteClient';
4
4
  export declare type RegisterPayload = {
5
5
  name: string;
6
6
  email: string;
@@ -1,6 +1,6 @@
1
- import { ReactiveStore } from '@src/ReactiveStore/ReactiveStore';
2
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
3
- import { Session } from '@src/Server/Socket/SessionManager';
1
+ import { ReactiveStore } from './../../ReactiveStore/ReactiveStore';
2
+ import { SqliteClient } from './../../Bootstrap/SqliteClient';
3
+ import { Session } from './../../Server/Socket/SessionManager';
4
4
  export declare type ResetPasswordPayload = {
5
5
  token: string;
6
6
  password: string;
@@ -1,5 +1,5 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { Session, SessionManager } from '@src/Server/Socket/SessionManager';
1
+ import { SqliteClient } from './../../Bootstrap/SqliteClient';
2
+ import { Session, SessionManager } from './../../Server/Socket/SessionManager';
3
3
  export declare type ResumeSessionResponse = {
4
4
  status: false;
5
5
  } | {
@@ -1,5 +1,5 @@
1
- import { Database } from '@src/ReactiveStore/ReactiveStore';
2
- import { WebSocketServerClient } from '@src/Server/Socket/WebSocketServerClient';
1
+ import { Database } from './../../ReactiveStore/ReactiveStore';
2
+ import { WebSocketServerClient } from './../../Server/Socket/WebSocketServerClient';
3
3
  import { watch as VueWatch, WatchStopHandle } from 'vue';
4
4
  import { BaseUser, BaseWorkspace } from '../../ReactiveStore/BaseEntity';
5
5
  import { UI } from './UI';
@@ -1,6 +1,6 @@
1
1
  import { BasePage } from 'oksy';
2
2
  import { FlatOrFunc } from './FlatOrFunc';
3
- import { GoogleIconType } from '@src/Frontend/GoogleIcons';
3
+ import { GoogleIconType } from './../../../Frontend/GoogleIcons';
4
4
  export declare type ButtonType = {
5
5
  id: string;
6
6
  type: 'BUTTON';
@@ -1,6 +1,6 @@
1
1
  import { BasePage } from 'oksy';
2
2
  import { FlatOrFunc } from './FlatOrFunc';
3
- import { GoogleIconType } from '@src/Frontend/GoogleIcons';
3
+ import { GoogleIconType } from './../../../Frontend/GoogleIcons';
4
4
  import { Dayjs } from 'dayjs';
5
5
  export declare type DataTableType = {
6
6
  id: string;
@@ -1,2 +1,2 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
1
+ import { SqliteClient } from './../Bootstrap/SqliteClient';
2
2
  export declare function getPasswordResetLinkRow(sqliteClient: SqliteClient, token: any): Promise<null | any>;
@@ -1,5 +1,5 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { ReactiveStore } from '@src/ReactiveStore/ReactiveStore';
1
+ import { SqliteClient } from './../Bootstrap/SqliteClient';
2
+ import { ReactiveStore } from './../ReactiveStore/ReactiveStore';
3
3
  declare type SeederParams = {
4
4
  reactiveStore: ReactiveStore;
5
5
  sqliteClient: SqliteClient;
@@ -1,4 +1,4 @@
1
- import { BlueprintFieldOne } from '@src/Bootstrap/TsFilesToBlueprint/Blueprint';
1
+ import { BlueprintFieldOne } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
2
2
  import { Dayjs } from 'dayjs';
3
3
  import { Database } from 'oksy';
4
4
  import { Many } from 'oksy';
@@ -1,4 +1,4 @@
1
- import { Blueprint } from '@src/Bootstrap/TsFilesToBlueprint/Blueprint';
1
+ import { Blueprint } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
2
2
  import { ReactiveStore } from './ReactiveStore';
3
3
  export declare function hydrateReactiveStore(databaseMap: {
4
4
  [tableName: string]: any[];
@@ -1,5 +1,5 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { Blueprint, BlueprintFieldMany } from '@src/Bootstrap/TsFilesToBlueprint/Blueprint';
1
+ import { SqliteClient } from './../Bootstrap/SqliteClient';
2
+ import { Blueprint, BlueprintFieldMany } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
3
3
  import { GlobalEntity } from './BaseEntity';
4
4
  import { Storage } from './ReactiveStore';
5
5
  export declare class Many<T1 extends GlobalEntity = any, T2 extends keyof T1 = any> {
@@ -1,5 +1,5 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { Blueprint } from '@src/Bootstrap/TsFilesToBlueprint/Blueprint';
1
+ import { SqliteClient } from './../Bootstrap/SqliteClient';
2
+ import { Blueprint } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
3
3
  import { Database, ReactiveStore } from './ReactiveStore';
4
4
  export declare class ModelMaker {
5
5
  private reactiveStore;
@@ -1,3 +1,3 @@
1
- import { Blueprint } from '@src/Bootstrap/TsFilesToBlueprint/Blueprint';
1
+ import { Blueprint } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
2
2
  import { GlobalEntity } from './BaseEntity';
3
3
  export declare function modelValidator(model: GlobalEntity, blueprint: Blueprint): boolean;
@@ -1,4 +1,4 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { Blueprint } from '@src/Bootstrap/TsFilesToBlueprint/Blueprint';
1
+ import { SqliteClient } from './../Bootstrap/SqliteClient';
2
+ import { Blueprint } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
3
3
  import { Storage } from './ReactiveStore';
4
4
  export declare function Proxify(sqliteClient: SqliteClient, model: any, blueprint: Blueprint, globalStoreItemGetter: Storage, localStoreItemGetter: null | Storage): any;
@@ -1,5 +1,5 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { Blueprint } from '@src/Bootstrap/TsFilesToBlueprint/Blueprint';
1
+ import { SqliteClient } from './../Bootstrap/SqliteClient';
2
+ import { Blueprint } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
3
3
  import { PartialGlobalEntity } from './BaseEntity';
4
4
  import { ModelMaker } from './ModelMaker';
5
5
  export interface Storage {
@@ -1,3 +1,3 @@
1
1
  import { FastifyInstance } from 'fastify';
2
- import { ReactiveStore } from '@src/ReactiveStore/ReactiveStore';
2
+ import { ReactiveStore } from './../ReactiveStore/ReactiveStore';
3
3
  export declare function registerFileUploader(fastifyServer: FastifyInstance, reactiveStore: ReactiveStore): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { FastifyInstance } from 'fastify';
2
- import { ReactiveStore } from '@src/ReactiveStore/ReactiveStore';
3
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
4
- import { IMailer } from '@src/Mailer/IMailer';
2
+ import { ReactiveStore } from './../ReactiveStore/ReactiveStore';
3
+ import { SqliteClient } from './../Bootstrap/SqliteClient';
4
+ import { IMailer } from './../Mailer/IMailer';
5
5
  export declare function registerSocketServer(fastifyServer: FastifyInstance, reactiveStore: ReactiveStore, sqliteClient: SqliteClient, mailer: IMailer): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { Database, ReactiveStore } from '@src/ReactiveStore/ReactiveStore';
1
+ import { Database, ReactiveStore } from './../../ReactiveStore/ReactiveStore';
2
2
  import { BasePage } from 'oksy';
3
3
  import { BaseWorkspace } from 'oksy';
4
4
  export declare type Route = {
@@ -1,5 +1,5 @@
1
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
2
- import { ReactiveStore } from '@src/ReactiveStore/ReactiveStore';
1
+ import { SqliteClient } from './../../Bootstrap/SqliteClient';
2
+ import { ReactiveStore } from './../../ReactiveStore/ReactiveStore';
3
3
  import { Dayjs } from 'dayjs';
4
4
  import { BaseUser } from 'oksy';
5
5
  import { BasePage } from 'oksy';
@@ -1,4 +1,4 @@
1
1
  import { ReactiveStore } from '../ReactiveStore/ReactiveStore';
2
- import { SqliteClient } from '@src/Bootstrap/SqliteClient';
3
- import { IMailer } from '@src/Mailer/IMailer';
2
+ import { SqliteClient } from './../Bootstrap/SqliteClient';
3
+ import { IMailer } from './../Mailer/IMailer';
4
4
  export declare function StartWebServer(reactiveStore: ReactiveStore, sqliteClient: SqliteClient, mailer: IMailer): Promise<void>;