lincd-cli 0.2.64 → 0.2.66

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.
Files changed (81) hide show
  1. package/.husky/post-merge +3 -3
  2. package/.husky/pre-commit +4 -4
  3. package/.prettierignore +3 -3
  4. package/.prettierrc.json +23 -23
  5. package/LICENSE +373 -373
  6. package/README.md +24 -24
  7. package/defaults/app/Gruntfile.js +5 -5
  8. package/defaults/app/index.html +12 -12
  9. package/defaults/app/package.json +30 -30
  10. package/defaults/app/src/App.scss +2 -2
  11. package/defaults/app/src/App.tsx +4 -4
  12. package/defaults/app/src/index.tsx +10 -10
  13. package/defaults/app/tsconfig-es5.json +18 -18
  14. package/defaults/app/tsconfig.json +21 -21
  15. package/defaults/app-static/capacitor.config.ts +48 -48
  16. package/defaults/app-static/src/index-static.tsx +27 -27
  17. package/defaults/app-static/web/index.html +21 -21
  18. package/defaults/app-with-backend/.env-cmdrc.json +16 -16
  19. package/defaults/app-with-backend/.eslintignore +2 -2
  20. package/defaults/app-with-backend/.eslintrc.json +40 -40
  21. package/defaults/app-with-backend/.husky/post-merge +3 -3
  22. package/defaults/app-with-backend/.husky/pre-commit +4 -4
  23. package/defaults/app-with-backend/.prettierignore +3 -3
  24. package/defaults/app-with-backend/.prettierrc.json +27 -27
  25. package/defaults/app-with-backend/.run/start.run.xml +11 -11
  26. package/defaults/app-with-backend/.vscode/launch.json +11 -11
  27. package/defaults/app-with-backend/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -550
  28. package/defaults/app-with-backend/.yarn/releases/yarn-3.6.1.cjs +874 -874
  29. package/defaults/app-with-backend/babel.config.js +4 -4
  30. package/defaults/app-with-backend/gitignore.template +22 -22
  31. package/defaults/app-with-backend/lincd.config.js +7 -7
  32. package/defaults/app-with-backend/package.json +92 -92
  33. package/defaults/app-with-backend/pm2.config.js +12 -12
  34. package/defaults/app-with-backend/readme.md +8 -8
  35. package/defaults/app-with-backend/scripts/build.js +41 -41
  36. package/defaults/app-with-backend/scripts/setup_storage.js +6 -6
  37. package/defaults/app-with-backend/scripts/start-server.js +11 -11
  38. package/defaults/app-with-backend/src/App.scss +6 -6
  39. package/defaults/app-with-backend/src/App.tsx +34 -34
  40. package/defaults/app-with-backend/src/backend.ts +1 -1
  41. package/defaults/app-with-backend/src/components/Error.scss +9 -9
  42. package/defaults/app-with-backend/src/components/Error.tsx +14 -14
  43. package/defaults/app-with-backend/src/components/Spinner.scss +17 -17
  44. package/defaults/app-with-backend/src/components/Spinner.tsx +12 -12
  45. package/defaults/app-with-backend/src/index.tsx +32 -32
  46. package/defaults/app-with-backend/src/layout/DefaultLayout.scss +6 -6
  47. package/defaults/app-with-backend/src/layout/DefaultLayout.tsx +13 -13
  48. package/defaults/app-with-backend/src/layout/Header.scss +10 -10
  49. package/defaults/app-with-backend/src/layout/Header.tsx +23 -23
  50. package/defaults/app-with-backend/src/package.ts +14 -14
  51. package/defaults/app-with-backend/src/pages/Home.scss +15 -15
  52. package/defaults/app-with-backend/src/pages/Home.tsx +21 -21
  53. package/defaults/app-with-backend/src/pages/Page1.tsx +11 -11
  54. package/defaults/app-with-backend/src/pages/PageNotFound.tsx +11 -11
  55. package/defaults/app-with-backend/src/pages/Signin.tsx +12 -12
  56. package/defaults/app-with-backend/src/routes.tsx +72 -72
  57. package/defaults/app-with-backend/src/scss/global-overwrites.scss +11 -11
  58. package/defaults/app-with-backend/src/scss/variables.scss +23 -23
  59. package/defaults/app-with-backend/tsconfig.json +21 -21
  60. package/defaults/app-with-backend/yarnrc.yml.template +8 -8
  61. package/defaults/capacitor/scripts/fix-namespace.js +41 -41
  62. package/defaults/component.scss +2 -2
  63. package/defaults/component.tsx +11 -11
  64. package/defaults/package/package.json +38 -38
  65. package/defaults/package/src/components/ExampleComponent.tsx +8 -8
  66. package/defaults/package/src/data/example-ontology.json +20 -20
  67. package/defaults/package/src/data/example-ontology.json.d.ts +1 -1
  68. package/defaults/package/src/index.ts +7 -7
  69. package/defaults/package/src/ontologies/example-ontology.ts +36 -36
  70. package/defaults/package/src/package.ts +4 -4
  71. package/defaults/package/src/shapes/ExampleShapeClass.ts +29 -29
  72. package/defaults/set-component.tsx +15 -15
  73. package/defaults/shape.ts +8 -8
  74. package/expose-grunt.js +1 -1
  75. package/lib/cli-methods.js +4 -1
  76. package/lib/config-grunt.js +5 -5
  77. package/lib/plugins/check-imports.js +1 -1
  78. package/lib/utils.js +3 -3
  79. package/package.json +1 -1
  80. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
  81. package/.yarn/versions/d035ef78.yml +0 -0
@@ -1,4 +1,4 @@
1
- module.exports = {
2
- presets: ['@babel/preset-env', ['@babel/preset-react', {runtime: 'automatic'}], '@babel/preset-typescript'],
3
- plugins: ['@babel/plugin-transform-runtime',['@babel/plugin-proposal-decorators',{legacy:true}]],
4
- };
1
+ module.exports = {
2
+ presets: ['@babel/preset-env', ['@babel/preset-react', {runtime: 'automatic'}], '@babel/preset-typescript'],
3
+ plugins: ['@babel/plugin-transform-runtime',['@babel/plugin-proposal-decorators',{legacy:true}]],
4
+ };
@@ -1,23 +1,23 @@
1
- node_modules
2
- build
3
- web/assets
4
- data/uploads
5
- data/metadata
6
- data/sessions
7
- .yarn/*
8
- !.yarn/patches
9
- !.yarn/plugins
10
- !.yarn/releases
11
- !.yarn/sdks
12
- !.yarn/versions
13
- packages/**/dist
14
- packages/**/lib
15
- packages/**/.yarn/*
16
- !packages/**/.yarn/patches
17
- !packages/**/.yarn/plugins
18
- !packages/**/.yarn/releases
19
- !packages/**/.yarn/sdks
20
- !packages/**/.yarn/versions
21
- .idea
22
- android/app/build
1
+ node_modules
2
+ build
3
+ web/assets
4
+ data/uploads
5
+ data/metadata
6
+ data/sessions
7
+ .yarn/*
8
+ !.yarn/patches
9
+ !.yarn/plugins
10
+ !.yarn/releases
11
+ !.yarn/sdks
12
+ !.yarn/versions
13
+ packages/**/dist
14
+ packages/**/lib
15
+ packages/**/.yarn/*
16
+ !packages/**/.yarn/patches
17
+ !packages/**/.yarn/plugins
18
+ !packages/**/.yarn/releases
19
+ !packages/**/.yarn/sdks
20
+ !packages/**/.yarn/versions
21
+ .idea
22
+ android/app/build
23
23
  ios/App/App/public
@@ -1,7 +1,7 @@
1
- module.exports = {
2
- cssMode: 'scss-modules',
3
- cacheWebpack:true,
4
- cssGlobalModulePaths:[/global-overwrites.scss/],
5
- analyse:false,
6
-
7
- };
1
+ module.exports = {
2
+ cssMode: 'scss-modules',
3
+ cacheWebpack:true,
4
+ cssGlobalModulePaths:[/global-overwrites.scss/],
5
+ analyse:false,
6
+
7
+ };
@@ -1,92 +1,92 @@
1
- {
2
- "name": "${hyphen_name}",
3
- "displayName": "${name}",
4
- "description": "",
5
- "version": "0.1.0",
6
- "private": true,
7
- "lincdApp": true,
8
- "author": {
9
- "name": "",
10
- "url": "",
11
- "email": ""
12
- },
13
- "engines": {
14
- "node": ">=16.0.0"
15
- },
16
- "main": "scripts/start-server.js",
17
- "license": "MIT",
18
- "scripts": {
19
- "start": "npm run server:dev",
20
- "build": "env-cmd -e _main,production node scripts/build.js",
21
- "postinstall": "husky install",
22
- "prepack": "pinst --disable",
23
- "postpack": "pinst --enable",
24
- "server:dev": "env-cmd -e _main,development nodemon --quiet --watch ./src/index.tsx ./scripts/start-server.js",
25
- "server:prod": "env-cmd -e _main,production node ./scripts/start-server.js",
26
- "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
27
- "lint:fix": "yarn lint --fix",
28
- "prettier": "prettier \"src/**/*.{js,jsx,ts,tsx,css,scss}\" --check",
29
- "prettier:fix": "yarn prettier --write",
30
- "format": "yarn prettier:fix && yarn lint:fix"
31
- },
32
- "lint-staged": {
33
- "*.{js,ts,tsx}": [
34
- "prettier --write"
35
- ],
36
- "*.{scss,css,json}": [
37
- "prettier --write"
38
- ]
39
- },
40
- "workspaces" : [
41
- "packages/*"
42
- ],
43
- "keywords": [
44
- "lincd",
45
- "linked code",
46
- "linked data",
47
- "structured data",
48
- "RDF",
49
- "semantic web",
50
- "web3"
51
- ],
52
- "dependencies": {
53
- "@babel/cli": "^7.22.9",
54
- "@babel/core": "^7.22.9",
55
- "@babel/plugin-proposal-decorators": "^7.22.7",
56
- "@babel/plugin-transform-runtime": "^7.22.9",
57
- "@babel/preset-env": "^7.22.9",
58
- "@babel/preset-react": "^7.22.5",
59
- "@babel/preset-typescript": "^7.22.5",
60
- "@babel/register": "^7.22.5",
61
- "chalk": "4.1.2",
62
- "lincd": "^0.5.22",
63
- "lincd-auth": "^0.1.19",
64
- "lincd-jsonld": "^0.1.21",
65
- "lincd-server": "^0.1.39",
66
- "lincd-server-utils": "^0.1.7",
67
- "react": "^18.2",
68
- "react-dom": "^18.2",
69
- "react-error-boundary": "^3.1.3",
70
- "react-router-dom": "^6.3.0"
71
- },
72
- "devDependencies": {
73
- "@types/node": "^18.11.10",
74
- "@types/react": "^18.0.17",
75
- "@types/react-dom": "^18.0.6",
76
- "@typescript-eslint/eslint-plugin": "latest",
77
- "@typescript-eslint/parser": "latest",
78
- "env-cmd": "^10.1.0",
79
- "eslint": "latest",
80
- "eslint-config-prettier": "^8.9.0",
81
- "eslint-import-resolver-typescript": "^3.5.5",
82
- "eslint-plugin-prettier": "^5.0.0",
83
- "eslint-plugin-react": "latest",
84
- "eslint-plugin-react-hooks": "^4.6.0",
85
- "husky": "^8.0.0",
86
- "lincd-cli": "^0.2",
87
- "nodemon": "^2.0.22",
88
- "pinst": "^3.0.0",
89
- "pm2": "^5.3.0",
90
- "which": "^3.0.1"
91
- }
92
- }
1
+ {
2
+ "name": "${hyphen_name}",
3
+ "displayName": "${name}",
4
+ "description": "",
5
+ "version": "0.1.0",
6
+ "private": true,
7
+ "lincdApp": true,
8
+ "author": {
9
+ "name": "",
10
+ "url": "",
11
+ "email": ""
12
+ },
13
+ "engines": {
14
+ "node": ">=16.0.0"
15
+ },
16
+ "main": "scripts/start-server.js",
17
+ "license": "MIT",
18
+ "scripts": {
19
+ "start": "npm run server:dev",
20
+ "build": "env-cmd -e _main,production node scripts/build.js",
21
+ "postinstall": "husky install",
22
+ "prepack": "pinst --disable",
23
+ "postpack": "pinst --enable",
24
+ "server:dev": "env-cmd -e _main,development nodemon --quiet --watch ./src/index.tsx ./scripts/start-server.js",
25
+ "server:prod": "env-cmd -e _main,production node ./scripts/start-server.js",
26
+ "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
27
+ "lint:fix": "yarn lint --fix",
28
+ "prettier": "prettier \"src/**/*.{js,jsx,ts,tsx,css,scss}\" --check",
29
+ "prettier:fix": "yarn prettier --write",
30
+ "format": "yarn prettier:fix && yarn lint:fix"
31
+ },
32
+ "lint-staged": {
33
+ "*.{js,ts,tsx}": [
34
+ "prettier --write"
35
+ ],
36
+ "*.{scss,css,json}": [
37
+ "prettier --write"
38
+ ]
39
+ },
40
+ "workspaces" : [
41
+ "packages/*"
42
+ ],
43
+ "keywords": [
44
+ "lincd",
45
+ "linked code",
46
+ "linked data",
47
+ "structured data",
48
+ "RDF",
49
+ "semantic web",
50
+ "web3"
51
+ ],
52
+ "dependencies": {
53
+ "@babel/cli": "^7.22.9",
54
+ "@babel/core": "^7.22.9",
55
+ "@babel/plugin-proposal-decorators": "^7.22.7",
56
+ "@babel/plugin-transform-runtime": "^7.22.9",
57
+ "@babel/preset-env": "^7.22.9",
58
+ "@babel/preset-react": "^7.22.5",
59
+ "@babel/preset-typescript": "^7.22.5",
60
+ "@babel/register": "^7.22.5",
61
+ "chalk": "4.1.2",
62
+ "lincd": "^0.5.22",
63
+ "lincd-auth": "^0.1.19",
64
+ "lincd-jsonld": "^0.1.21",
65
+ "lincd-server": "^0.1.39",
66
+ "lincd-server-utils": "^0.1.7",
67
+ "react": "^18.2",
68
+ "react-dom": "^18.2",
69
+ "react-error-boundary": "^3.1.3",
70
+ "react-router-dom": "^6.3.0"
71
+ },
72
+ "devDependencies": {
73
+ "@types/node": "^18.11.10",
74
+ "@types/react": "^18.0.17",
75
+ "@types/react-dom": "^18.0.6",
76
+ "@typescript-eslint/eslint-plugin": "latest",
77
+ "@typescript-eslint/parser": "latest",
78
+ "env-cmd": "^10.1.0",
79
+ "eslint": "latest",
80
+ "eslint-config-prettier": "^8.9.0",
81
+ "eslint-import-resolver-typescript": "^3.5.5",
82
+ "eslint-plugin-prettier": "^5.0.0",
83
+ "eslint-plugin-react": "latest",
84
+ "eslint-plugin-react-hooks": "^4.6.0",
85
+ "husky": "^8.0.0",
86
+ "lincd-cli": "^0.2",
87
+ "nodemon": "^2.0.22",
88
+ "pinst": "^3.0.0",
89
+ "pm2": "^5.3.0",
90
+ "which": "^3.0.1"
91
+ }
92
+ }
@@ -1,12 +1,12 @@
1
- module.exports = {
2
- apps: [
3
- {
4
- name: '${hyphen_name}',
5
- script: 'yarn run server:prod',
6
- time: true,
7
- log_date_format: 'DD-MM-YYYY HH:mm Z',
8
- out_file: "./data/out.log",
9
- error_file: "./data/error.log",
10
- }
11
- ],
12
- };
1
+ module.exports = {
2
+ apps: [
3
+ {
4
+ name: '${hyphen_name}',
5
+ script: 'yarn run server:prod',
6
+ time: true,
7
+ log_date_format: 'DD-MM-YYYY HH:mm Z',
8
+ out_file: "./data/out.log",
9
+ error_file: "./data/error.log",
10
+ }
11
+ ],
12
+ };
@@ -1,8 +1,8 @@
1
- # installation
2
- ```bash
3
- yarn install
4
- ```
5
- ```bash
6
- yarn start
7
- ```
8
-
1
+ # installation
2
+ ```bash
3
+ yarn install
4
+ ```
5
+ ```bash
6
+ yarn start
7
+ ```
8
+
@@ -1,41 +1,41 @@
1
- 'use strict';
2
- const webpack = require('webpack');
3
- const config = require('lincd-server/site.webpack.config');
4
- const chalk = require('chalk');
5
- const { buildMetadata } = require('lincd-cli/lib/cli-methods');
6
-
7
- webpack(config, async (err, stats) => {
8
- if (err) {
9
- console.error(err.stack || err);
10
- if (err.details) {
11
- console.error(err.details);
12
- }
13
- process.exit(1);
14
- }
15
- const info = stats.toJson();
16
- if (stats.hasErrors()) {
17
- console.log('Finished running webpack with errors.');
18
- info.errors.forEach((e) => console.error(e));
19
- process.exit(1);
20
- } else {
21
- console.log(
22
- stats.toString({
23
- chunks: false,
24
- assets: true,
25
- entryPoints: false,
26
- modules: false,
27
- moduleAssets: false,
28
- moduleChunks: false,
29
- colors: true,
30
- }),
31
- );
32
- // console.log(
33
- // chalk.green('\t'+Object.keys(stats.compilation.assets).join('\n\t')),
34
- // );
35
-
36
- //build metadata (JSON-LD files containing metadata about the lincd components, shapes & ontologies in this app or its packages)
37
- // let updatedPaths = await buildMetadata();
38
- // console.log(chalk.green("Updated metadata:\n")+" - "+updatedPaths.map(p => chalk.magenta(p.replace(process.cwd(),''))).join("\n - "));
39
- }
40
- process.exit();
41
- });
1
+ 'use strict';
2
+ const webpack = require('webpack');
3
+ const config = require('lincd-server/site.webpack.config');
4
+ const chalk = require('chalk');
5
+ const { buildMetadata } = require('lincd-cli/lib/cli-methods');
6
+
7
+ webpack(config, async (err, stats) => {
8
+ if (err) {
9
+ console.error(err.stack || err);
10
+ if (err.details) {
11
+ console.error(err.details);
12
+ }
13
+ process.exit(1);
14
+ }
15
+ const info = stats.toJson();
16
+ if (stats.hasErrors()) {
17
+ console.log('Finished running webpack with errors.');
18
+ info.errors.forEach((e) => console.error(e));
19
+ process.exit(1);
20
+ } else {
21
+ console.log(
22
+ stats.toString({
23
+ chunks: false,
24
+ assets: true,
25
+ entryPoints: false,
26
+ modules: false,
27
+ moduleAssets: false,
28
+ moduleChunks: false,
29
+ colors: true,
30
+ }),
31
+ );
32
+ // console.log(
33
+ // chalk.green('\t'+Object.keys(stats.compilation.assets).join('\n\t')),
34
+ // );
35
+
36
+ //build metadata (JSON-LD files containing metadata about the lincd components, shapes & ontologies in this app or its packages)
37
+ // let updatedPaths = await buildMetadata();
38
+ // console.log(chalk.green("Updated metadata:\n")+" - "+updatedPaths.map(p => chalk.magenta(p.replace(process.cwd(),''))).join("\n - "));
39
+ }
40
+ process.exit();
41
+ });
@@ -1,6 +1,6 @@
1
- const { NodeFileStore } = require('lincd-server/lib/shapes/NodeFileStore');
2
- const { Storage } = require('lincd/lib/utils/Storage');
3
-
4
- //on the backend, we use a file store which stores all data as JSON-LD
5
- let fileStore = new NodeFileStore(process.env.NODE_ENV + '-main');
6
- Storage.setDefaultStore(fileStore);
1
+ const { NodeFileStore } = require('lincd-server/lib/shapes/NodeFileStore');
2
+ const { Storage } = require('lincd/lib/utils/Storage');
3
+
4
+ //on the backend, we use a file store which stores all data as JSON-LD
5
+ let fileStore = new NodeFileStore(process.env.NODE_ENV + '-main');
6
+ Storage.setDefaultStore(fileStore);
@@ -1,11 +1,11 @@
1
- 'use strict';
2
- require('@babel/register')({ extensions: ['.ts', '.tsx'] });
3
- const LincdServer = require('lincd-server/lib/shapes/LincdServer');
4
- let lincdConfig = require('../lincd.config');
5
- require('./setup_storage');
6
-
7
- let server = new LincdServer.LincdServer({
8
- loadAppComponent: () => require('../src/App').default,
9
- ...lincdConfig,
10
- });
11
- server.start();
1
+ 'use strict';
2
+ require('@babel/register')({ extensions: ['.ts', '.tsx'] });
3
+ const LincdServer = require('lincd-server/lib/shapes/LincdServer');
4
+ let lincdConfig = require('../lincd.config');
5
+ require('./setup_storage');
6
+
7
+ let server = new LincdServer.LincdServer({
8
+ loadAppComponent: () => require('../src/App').default,
9
+ ...lincdConfig,
10
+ });
11
+ server.start();
@@ -1,6 +1,6 @@
1
- @import 'scss/variables.scss';
2
-
3
- .App {
4
- display: block;
5
- color: $textColor;
6
- }
1
+ @import 'scss/variables.scss';
2
+
3
+ .App {
4
+ display: block;
5
+ color: $textColor;
6
+ }
@@ -1,34 +1,34 @@
1
- import React, {Suspense} from 'react';
2
- import {ErrorBoundary} from 'react-error-boundary';
3
- import {Spinner} from './components/Spinner';
4
- import {Error} from './components/Error';
5
- import {AppRoot} from 'lincd-server-utils/lib/components/AppRoot';
6
- import {Head} from 'lincd-server-utils/lib/components/Head';
7
- import {Body} from 'lincd-server-utils/lib/components/Body';
8
- import AppRoutes, {ROUTES} from './routes';
9
- import {ProvideAuth} from 'lincd-auth/lib/hooks/useAuth';
10
-
11
- //Note that by default LINCD apps are set up with support for SCSS (sass) and CSS Modules
12
- //So any .scss file needs to be imported by itself
13
- import './App.scss';
14
- //and then the .scss.json file needs to be imported to access the class names (this file will be automatically generated)
15
- import style from './App.scss.json';
16
-
17
- export default function App() {
18
- return (
19
- <AppRoot>
20
- <Head>
21
- {/* Add tags to html <head> here, for example, a font <link href='https://fonts.someapi.com/...' />*/}
22
- </Head>
23
- <Body routes={ROUTES} pageStyles={style} className={style.App}>
24
- <Suspense fallback={<Spinner />}>
25
- <ErrorBoundary FallbackComponent={Error}>
26
- <ProvideAuth>
27
- <AppRoutes />
28
- </ProvideAuth>
29
- </ErrorBoundary>
30
- </Suspense>
31
- </Body>
32
- </AppRoot>
33
- );
34
- }
1
+ import React, {Suspense} from 'react';
2
+ import {ErrorBoundary} from 'react-error-boundary';
3
+ import {Spinner} from './components/Spinner';
4
+ import {Error} from './components/Error';
5
+ import {AppRoot} from 'lincd-server-utils/lib/components/AppRoot';
6
+ import {Head} from 'lincd-server-utils/lib/components/Head';
7
+ import {Body} from 'lincd-server-utils/lib/components/Body';
8
+ import AppRoutes, {ROUTES} from './routes';
9
+ import {ProvideAuth} from 'lincd-auth/lib/hooks/useAuth';
10
+
11
+ //Note that by default LINCD apps are set up with support for SCSS (sass) and CSS Modules
12
+ //So any .scss file needs to be imported by itself
13
+ import './App.scss';
14
+ //and then the .scss.json file needs to be imported to access the class names (this file will be automatically generated)
15
+ import style from './App.scss.json';
16
+
17
+ export default function App() {
18
+ return (
19
+ <AppRoot>
20
+ <Head>
21
+ {/* Add tags to html <head> here, for example, a font <link href='https://fonts.someapi.com/...' />*/}
22
+ </Head>
23
+ <Body routes={ROUTES} pageStyles={style} className={style.App}>
24
+ <Suspense fallback={<Spinner />}>
25
+ <ErrorBoundary FallbackComponent={Error}>
26
+ <ProvideAuth>
27
+ <AppRoutes />
28
+ </ProvideAuth>
29
+ </ErrorBoundary>
30
+ </Suspense>
31
+ </Body>
32
+ </AppRoot>
33
+ );
34
+ }
@@ -1 +1 @@
1
- //import all ShapeProviders here or define a generic BackendProvider, see documentation on https://docs.lincd.org
1
+ //import all ShapeProviders here or define a generic BackendProvider, see documentation on https://docs.lincd.org
@@ -1,9 +1,9 @@
1
- .error {
2
- color: white;
3
- margin: 2rem;
4
-
5
- pre {
6
- white-space: pre-wrap;
7
- padding: 1rem;
8
- }
9
- }
1
+ .error {
2
+ color: white;
3
+ margin: 2rem;
4
+
5
+ pre {
6
+ white-space: pre-wrap;
7
+ padding: 1rem;
8
+ }
9
+ }
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import style from './Error.scss.json';
3
- import './Error.scss';
4
-
5
- export function Error({error}) {
6
- return (
7
- <div className={style.error}>
8
- <h1>Application Error</h1>
9
- <pre>{error.stack}</pre>
10
- </div>
11
- );
12
- }
13
-
14
-
1
+ import React from 'react';
2
+ import style from './Error.scss.json';
3
+ import './Error.scss';
4
+
5
+ export function Error({error}) {
6
+ return (
7
+ <div className={style.error}>
8
+ <h1>Application Error</h1>
9
+ <pre>{error.stack}</pre>
10
+ </div>
11
+ );
12
+ }
13
+
14
+
@@ -1,17 +1,17 @@
1
- .spinner.active {
2
- border: 4px solid transparent;
3
- border-top: 4px solid #474545;
4
- border-radius: 50%;
5
- width: 16px;
6
- height: 16px;
7
- animation: spin 1s linear infinite;
8
- }
9
-
10
- @keyframes spin {
11
- 0% {
12
- transform: rotate(0deg);
13
- }
14
- 100% {
15
- transform: rotate(360deg);
16
- }
17
- }
1
+ .spinner.active {
2
+ border: 4px solid transparent;
3
+ border-top: 4px solid #474545;
4
+ border-radius: 50%;
5
+ width: 16px;
6
+ height: 16px;
7
+ animation: spin 1s linear infinite;
8
+ }
9
+
10
+ @keyframes spin {
11
+ 0% {
12
+ transform: rotate(0deg);
13
+ }
14
+ 100% {
15
+ transform: rotate(360deg);
16
+ }
17
+ }
@@ -1,12 +1,12 @@
1
- import './Spinner.scss';
2
- import * as style from './Spinner.scss.json';
3
-
4
- export function Spinner({active = true}) {
5
- return (
6
- <div
7
- className={[style.spinner, active && style.active].join(' ')}
8
- role="progressbar"
9
- aria-busy={active ? 'true' : 'false'}
10
- />
11
- );
12
- }
1
+ import './Spinner.scss';
2
+ import * as style from './Spinner.scss.json';
3
+
4
+ export function Spinner({active = true}) {
5
+ return (
6
+ <div
7
+ className={[style.spinner, active && style.active].join(' ')}
8
+ role="progressbar"
9
+ aria-busy={active ? 'true' : 'false'}
10
+ />
11
+ );
12
+ }