lincd-cli 1.2.1 → 1.2.2
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/defaults/app-with-backend/lincd.config.js +3 -3
- package/defaults/app-with-backend/package.json +2 -1
- package/defaults/app-with-backend/src/index.tsx +3 -3
- package/defaults/app-with-backend/src/pages/Home.tsx +1 -0
- package/defaults/app-with-backend/src/pages/PageNotFound.tsx +2 -1
- package/defaults/app-with-backend/src/theme.css +61 -66
- package/defaults/app-with-backend/src/types.ts +14 -0
- package/defaults/app-with-backend/tsconfig.json +1 -1
- package/defaults/package/package.json +30 -3
- package/defaults/package/src/index.ts +1 -1
- package/defaults/package/src/ontologies/example-ontology.ts +4 -4
- package/defaults/package/src/package.ts +2 -1
- package/defaults/shape.ts +1 -1
- package/lib/cjs/cli-methods.js +213 -39
- package/lib/cjs/cli-methods.js.map +1 -1
- package/lib/cjs/cli.js +9 -1
- package/lib/cjs/cli.js.map +1 -1
- package/lib/cjs/config-webpack-app.js +35 -33
- package/lib/cjs/config-webpack-app.js.map +1 -1
- package/lib/cjs/config-webpack.js +1 -1
- package/lib/cjs/config-webpack.js.map +1 -1
- package/lib/cjs/package.json +2 -1
- package/lib/cjs/utils.js +12 -5
- package/lib/cjs/utils.js.map +1 -1
- package/lib/esm/cli-methods.js +205 -37
- package/lib/esm/cli-methods.js.map +1 -1
- package/lib/esm/cli.js +10 -2
- package/lib/esm/cli.js.map +1 -1
- package/lib/esm/config-webpack-app.js +36 -34
- package/lib/esm/config-webpack-app.js.map +1 -1
- package/lib/esm/config-webpack.js +1 -1
- package/lib/esm/config-webpack.js.map +1 -1
- package/lib/esm/package.json +2 -1
- package/lib/esm/utils.js +12 -5
- package/lib/esm/utils.js.map +1 -1
- package/package.json +2 -1
- /package/defaults/package/src/{types.d.ts → types.ts} +0 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"description": "",
|
|
5
5
|
"version": "0.1.0",
|
|
6
6
|
"private": true,
|
|
7
|
+
"type": "module",
|
|
7
8
|
"lincdApp": true,
|
|
8
9
|
"author": {
|
|
9
10
|
"name": "",
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"eslint-plugin-react": "latest",
|
|
73
74
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
74
75
|
"husky": "^8.0.0",
|
|
75
|
-
"lincd-cli": "^1.1",
|
|
76
|
+
"lincd-cli": "^1.2.1",
|
|
76
77
|
"nodemon": "^2.0.22",
|
|
77
78
|
"pinst": "^3.0.0",
|
|
78
79
|
"pm2": "^5.3.0",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { initFrontend } from 'lincd-server-utils/
|
|
1
|
+
import { initFrontend } from 'lincd-server-utils/utils/Frontend';
|
|
2
2
|
import { hydrateRoot } from 'react-dom/client';
|
|
3
3
|
import { BrowserRouter } from 'react-router-dom';
|
|
4
4
|
import App from './App';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { AppContextProvider } from 'lincd-server-utils/
|
|
6
|
+
import { AppContextProvider } from 'lincd-server-utils/components/AppContext';
|
|
7
7
|
|
|
8
8
|
//import the storage & file configuration for the frontend
|
|
9
9
|
import './config-frontend';
|
|
@@ -20,7 +20,7 @@ initFrontend().then(() => {
|
|
|
20
20
|
<AppContextProvider
|
|
21
21
|
assets={window['assetManifest']}
|
|
22
22
|
requestLD={document.getElementById('request-ld')?.innerText}
|
|
23
|
-
requestObject={document.getElementById('request-json')?.innerText}
|
|
23
|
+
requestObject={JSON.parse(document.getElementById('request-json')?.innerText || '{}')}
|
|
24
24
|
>
|
|
25
25
|
<App />
|
|
26
26
|
</AppContextProvider>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import 'tailwindcss';
|
|
2
2
|
/*apply tailwind config, which ensures that all LINCD components are considered "content" for tailwind */
|
|
3
|
-
@config "
|
|
3
|
+
@config "../node_modules/lincd-cli/lib/esm/tailwind.config.js";
|
|
4
4
|
|
|
5
5
|
/*Use this to generate ALL css variables */
|
|
6
6
|
/*@theme static {*/
|
|
@@ -24,74 +24,69 @@
|
|
|
24
24
|
/*}*/
|
|
25
25
|
|
|
26
26
|
@theme {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
/* Primary Palette mapped to Tailwind sky */
|
|
28
|
+
--color-primary-50: var(--color-sky-50);
|
|
29
|
+
--color-primary-100: var(--color-sky-100);
|
|
30
|
+
--color-primary-200: var(--color-sky-200);
|
|
31
|
+
--color-primary-300: var(--color-sky-300);
|
|
32
|
+
--color-primary-400: var(--color-sky-400);
|
|
33
|
+
--color-primary-500: var(--color-sky-500);
|
|
34
|
+
--color-primary-600: var(--color-sky-600);
|
|
35
|
+
--color-primary-700: var(--color-sky-700);
|
|
36
|
+
--color-primary-800: var(--color-sky-800);
|
|
37
|
+
--color-primary-900: var(--color-sky-900);
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
/* === Shadows === */
|
|
40
|
+
--shadow-surface: var(--shadow-sm); /* Background panels, sections */
|
|
41
|
+
--shadow-card: var(--shadow-md); /* Cards, organized content blocks */
|
|
42
|
+
--shadow-popover: var(--shadow-lg); /* Tooltips, dropdowns, popovers */
|
|
43
|
+
--shadow-modal: var(--shadow-2xl); /* Modals, overlays */
|
|
44
|
+
--shadow-floating-action: var(
|
|
45
|
+
--shadow-lg
|
|
46
|
+
); /* Floating buttons, floating toolbars */
|
|
47
|
+
--shadow-content: none; /* Buttons, inputs inside surfaces */
|
|
48
|
+
/* === Backgrounds / Surfaces === */
|
|
49
|
+
--bg-page: var(--color-gray-50); /* Main app background */
|
|
50
|
+
--bg-section: var(--color-gray-100); /* Sections inside pages */
|
|
51
|
+
--bg-card: var(--color-white); /* Cards */
|
|
52
|
+
--bg-popover: var(--color-white); /* Popovers, dropdowns */
|
|
53
|
+
--bg-modal: var(--color-white); /* Modals, dialogs */
|
|
54
|
+
--bg-sidebar: var(--color-gray-200); /* Sidebars */
|
|
55
|
+
--bg-footer: var(--color-gray-300); /* Footer areas */
|
|
56
|
+
--bg-overlay: var(--color-gray-900); /* Overlay scrims (dark) */
|
|
57
|
+
/* for bg-card and text-card? */
|
|
58
|
+
--color-card: var(--color-white);
|
|
48
59
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
/* === Z-Index === */
|
|
61
|
+
--z-base: 0; /* Normal document flow */
|
|
62
|
+
--z-surface: 10; /* Cards, panels */
|
|
63
|
+
--z-popover: 30; /* Dropdowns, popovers */
|
|
64
|
+
--z-modal: 50; /* Modals, dialogs */
|
|
65
|
+
--z-overlay: 75; /* Overlays, backdrops */
|
|
66
|
+
--z-tooltip: 100; /* Tooltips, highest priority */
|
|
67
|
+
/* === Border Radius === */
|
|
68
|
+
/*TODO: should this not be much larger then card? from large to small? */
|
|
69
|
+
--radius-surface: var(--radius-sm); /* Default background surfaces */
|
|
70
|
+
--radius-card: var(--radius-lg); /* Cards and panels */
|
|
71
|
+
/*TODO: we need something for items inside a card, like buttons and images. Or even if they are on surfaces */
|
|
72
|
+
--radius-element: var(--radius-md); /* Images and buttons */
|
|
73
|
+
--radius-popover: var(--radius-md); /* Popovers, tooltips, dropdowns */
|
|
74
|
+
--radius-modal: var(--radius-2xl); /* Modals, overlays */
|
|
75
|
+
--radius-floating-action: var(
|
|
76
|
+
--radius-full
|
|
77
|
+
); /* Floating buttons, floating toolbars (FAB) */
|
|
78
|
+
--radius-none: 0px; /* Flat design option */
|
|
79
|
+
/* === Z-Index === */
|
|
80
|
+
--z-base: 0; /* Normal flow */
|
|
81
|
+
--z-surface: 10; /* Cards, panels */
|
|
82
|
+
--z-popover: 30; /* Dropdowns, popovers */
|
|
83
|
+
--z-modal: 50; /* Modals, dialogs */
|
|
84
|
+
--z-overlay: 75; /* Overlays, spinners */
|
|
85
|
+
--z-tooltip: 100; /* Tooltips, highest priority */
|
|
86
|
+
/* === Spacing (example for consistent gaps/padding) === */
|
|
87
|
+
--spacing-card: calc(var(--spacing) * 4);
|
|
58
88
|
|
|
59
|
-
|
|
60
|
-
--color-card: var(--color-white);
|
|
61
|
-
|
|
62
|
-
/* === Z-Index === */
|
|
63
|
-
--z-base: 0; /* Normal document flow */
|
|
64
|
-
--z-surface: 10; /* Cards, panels */
|
|
65
|
-
--z-popover: 30; /* Dropdowns, popovers */
|
|
66
|
-
--z-modal: 50; /* Modals, dialogs */
|
|
67
|
-
--z-overlay: 75; /* Overlays, backdrops */
|
|
68
|
-
--z-tooltip: 100; /* Tooltips, highest priority */
|
|
69
|
-
|
|
70
|
-
/* === Border Radius === */
|
|
71
|
-
/*TODO: should this not be much larger then card? from large to small? */
|
|
72
|
-
--radius-surface: var(--radius-sm); /* Default background surfaces */
|
|
73
|
-
--radius-card: var(--radius-lg); /* Cards and panels */
|
|
74
|
-
/*TODO: we need something for items inside a card, like buttons and images. Or even if they are on surfaces */
|
|
75
|
-
--radius-element: var(--radius-md); /* Images and buttons */
|
|
76
|
-
--radius-popover: var(--radius-md); /* Popovers, tooltips, dropdowns */
|
|
77
|
-
--radius-modal: var(--radius-2xl); /* Modals, overlays */
|
|
78
|
-
--radius-floating-action: var(
|
|
79
|
-
--radius-full
|
|
80
|
-
); /* Floating buttons, floating toolbars (FAB) */
|
|
81
|
-
--radius-none: 0px; /* Flat design option */
|
|
82
|
-
|
|
83
|
-
/* === Z-Index === */
|
|
84
|
-
--z-base: 0; /* Normal flow */
|
|
85
|
-
--z-surface: 10; /* Cards, panels */
|
|
86
|
-
--z-popover: 30; /* Dropdowns, popovers */
|
|
87
|
-
--z-modal: 50; /* Modals, dialogs */
|
|
88
|
-
--z-overlay: 75; /* Overlays, spinners */
|
|
89
|
-
--z-tooltip: 100; /* Tooltips, highest priority */
|
|
90
|
-
|
|
91
|
-
/* === Spacing (example for consistent gaps/padding) === */
|
|
92
|
-
--spacing-card: calc(var(--spacing) * 4);
|
|
93
|
-
|
|
94
|
-
/* TODO: set Header font family and font sizes in theme. Should they become increasingly bigger? Or should they be semantic? Like sub-header, ... we had some names once*/
|
|
89
|
+
/* TODO: set Header font family and font sizes in theme. Should they become increasingly bigger? Or should they be semantic? Like sub-header, ... we had some names once*/
|
|
95
90
|
}
|
|
96
91
|
|
|
97
92
|
/*@source utilities:bg:*,text:*,p-*,m-*,rounded-*,shadow-**/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare module '*.css' {
|
|
2
|
+
const styles: {
|
|
3
|
+
readonly [key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
// export type ClassName = string;
|
|
6
|
+
export default styles;
|
|
7
|
+
}
|
|
8
|
+
declare module '*.scss' {
|
|
9
|
+
const styles: {
|
|
10
|
+
readonly [key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
// export type ClassName = string;
|
|
13
|
+
export default styles;
|
|
14
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": ""
|
|
12
12
|
},
|
|
13
|
-
"version": "
|
|
13
|
+
"version": "1.0.0",
|
|
14
14
|
"lincd": true,
|
|
15
15
|
"main": "lib/index.js",
|
|
16
16
|
"types": "dist/${output_file_name}.d.ts",
|
|
@@ -28,11 +28,38 @@
|
|
|
28
28
|
"semantic web",
|
|
29
29
|
"web3"
|
|
30
30
|
],
|
|
31
|
+
"module": "lib/esm/index.js",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./lib/esm/index.d.ts",
|
|
35
|
+
"import": "./lib/esm/index.js",
|
|
36
|
+
"require": "./lib/cjs/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./*.js": {
|
|
39
|
+
"types": "./lib/esm/*.d.ts",
|
|
40
|
+
"import": "./lib/esm/*.js",
|
|
41
|
+
"require": "./lib/cjs/*.js"
|
|
42
|
+
},
|
|
43
|
+
"./*": {
|
|
44
|
+
"types": "./lib/esm/*.d.ts",
|
|
45
|
+
"import": "./lib/esm/*.js",
|
|
46
|
+
"require": "./lib/cjs/*.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"typesVersions": {
|
|
50
|
+
"*": {
|
|
51
|
+
"*": [
|
|
52
|
+
"lib/esm/*"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
31
56
|
"dependencies": {
|
|
32
57
|
"lincd": "^1.0",
|
|
33
|
-
"lincd-jsonld": "^0
|
|
58
|
+
"lincd-jsonld": "^1.0"
|
|
34
59
|
},
|
|
35
60
|
"devDependencies": {
|
|
36
|
-
"
|
|
61
|
+
"@types/node": "^22.13.14",
|
|
62
|
+
"lincd-cli": "^1.2",
|
|
63
|
+
"tsconfig-to-dual-package": "^1.2.0"
|
|
37
64
|
}
|
|
38
65
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {NamedNode} from 'lincd/models';
|
|
2
|
-
import {JSONLD} from 'lincd-jsonld/
|
|
2
|
+
import {JSONLD} from 'lincd-jsonld/utils/JSONLD';
|
|
3
3
|
import {createNameSpace} from 'lincd/utils/NameSpace';
|
|
4
|
-
import {linkedOntology} from '../package';
|
|
4
|
+
import {linkedOntology} from '../package.js';
|
|
5
5
|
//import all the exports of this file as one variable called _this (we need this at the end)
|
|
6
|
-
import * as _this from './${hyphen_name}';
|
|
6
|
+
import * as _this from './${hyphen_name}.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Load the data of this ontology into memory, thus adding the properties of the entities of this ontology to the local graph.
|
|
@@ -15,7 +15,7 @@ export var loadData = () => {
|
|
|
15
15
|
} else {
|
|
16
16
|
// ESM import
|
|
17
17
|
//@ts-ignore
|
|
18
|
-
return import('../data/${hyphen_name}.json',{ with: { type: "json" } }).then((data) => JSONLD.parse(data));
|
|
18
|
+
return import('../data/${hyphen_name}.json',{ with: { type: "json" } }).then((data) => JSONLD.parse(data.defauilt));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -2,11 +2,12 @@ import {linkedPackage} from 'lincd/utils/Package';
|
|
|
2
2
|
|
|
3
3
|
export const {
|
|
4
4
|
linkedComponent,
|
|
5
|
-
linkedComponentClass,
|
|
6
5
|
linkedShape,
|
|
7
6
|
linkedUtil,
|
|
8
7
|
linkedOntology,
|
|
9
8
|
registerPackageExport,
|
|
10
9
|
packageExports,
|
|
11
10
|
packageName,
|
|
11
|
+
getPackageShape
|
|
12
|
+
|
|
12
13
|
} = linkedPackage('${package_name}');
|