Skip to content

Commit

Permalink
Load mode files at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinsw committed Mar 8, 2024
1 parent 19bf0f7 commit bc6ef6f
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 123 deletions.
4 changes: 0 additions & 4 deletions babel.config.js

This file was deleted.

144 changes: 73 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"leaflet-editable": "^1.2.0",
"leaflet-gesture-handling": "^1.2.2",
"leaflet.path.drag": "^0.0.6",
"lodash": "^4.17.21",
"mime": "^4.0.1",
"moment": "^2.30.1",
"ro-crate": "^3.3.5"
Expand Down
6 changes: 0 additions & 6 deletions postcss.config.cjs.bak

This file was deleted.

1 change: 1 addition & 0 deletions src/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createApp } from 'vue';

//import "@element-plus/theme-chalk/dist/index.css";
import '../lib/tailwind.css';
//import 'element-plus/es/components/loading';
//import 'element-plus/dist/index.css';
//import 'element-plus/theme-chalk/base.css';
import { ElLoading } from 'element-plus';
Expand Down
11 changes: 11 additions & 0 deletions src/app/utils/profiles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const profileUrls = [
'https://language-research-technology.github.io/ro-crate-editor-profiles/profiles/base-profile.json',
'https://language-research-technology.github.io/ro-crate-editor-profiles/profiles/schema.json',
'https://language-research-technology.github.io/ro-crate-editor-profiles/profiles/language-data-commons-collection-profile.json',
'https://language-research-technology.github.io/ro-crate-editor-profiles/profiles/software-profile.json'
];
export const profiles = profileUrls.map(p => null);
const p = profileUrls.map((url, i) => fetch(url).then(r => r.ok ? r.json().then(json => profiles[i] = json) : null));
export const profilesPromise = Promise.allSettled(p);


Loading

0 comments on commit bc6ef6f

Please sign in to comment.