Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update to vue v3 #977

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
51faba0
wip: switching to mostly default vite package.json [skip ci]
sekwah41 Aug 28, 2024
829900b
wip: adding template vite.config.js [skip ci]
sekwah41 Aug 28, 2024
a841260
wip: got the basic template working [skip ci]
sekwah41 Aug 29, 2024
55ff3e7
wip: importing libraries and updating references [skip ci]
sekwah41 Aug 29, 2024
ab2260e
wip: update to silence warnings we have no control over [skip ci]
sekwah41 Aug 29, 2024
fce6193
wip: update the router creation [skip ci]
sekwah41 Aug 29, 2024
4ff87cb
wip: fixing the translations and events [skip ci]
sekwah41 Aug 29, 2024
2d539be
wip: removing old copy of main as I am using a second fork locally to…
sekwah41 Aug 29, 2024
6929e6a
wip: remove old vuecli config [skip ci]
sekwah41 Aug 29, 2024
280f457
wip: switch env values to have VITE_ before so they can be references…
sekwah41 Aug 29, 2024
6b56633
wip: fix translations for routes and 404 route [skip ci]
sekwah41 Aug 29, 2024
341a6f6
wip: fix imports and install oidc-client [skip ci]
sekwah41 Aug 29, 2024
4f48323
wip: pin package versions [skip ci]
sekwah41 Aug 29, 2024
8ad9294
wip: apply additional libraries [skip ci]
sekwah41 Aug 30, 2024
d12fb8c
wip: install bootstrap next and run npm format [skip ci]
sekwah41 Aug 30, 2024
8fd5fdf
wip: something is rendering, but its a blank page :( [skip ci]
sekwah41 Aug 30, 2024
ea2a320
wip: fix 404 translations [skip ci]
sekwah41 Aug 30, 2024
425e5a2
wip: fix double initialise and toastr wrong version [skip ci]
sekwah41 Aug 30, 2024
28f4638
wip: change how styles are applied to the root app [skip ci]
sekwah41 Aug 30, 2024
4eb8a08
wip: fix fontawesome and styling order [skip ci]
sekwah41 Aug 30, 2024
13d0c29
wip: fix validate input group forum input component [skip ci]
sekwah41 Aug 30, 2024
3493db4
wip: switch back to old naming [skip ci]
sekwah41 Aug 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NODE_ENV=production
VUE_APP_I18N_LOCALE=en
VUE_APP_I18N_FALLBACK_LOCALE=en
VUE_APP_SERVER_URL=
VITE_VUE_APP_I18N_LOCALE=en
VITE_VUE_APP_I18N_FALLBACK_LOCALE=en
VITE_VUE_APP_SERVER_URL=
6 changes: 3 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NODE_ENV=development
VUE_APP_I18N_LOCALE=en
VUE_APP_I18N_FALLBACK_LOCALE=en
VUE_APP_SERVER_URL=http://localhost:8080
VITE_VUE_APP_I18N_LOCALE=en
VITE_VUE_APP_I18N_FALLBACK_LOCALE=en
VITE_VUE_APP_SERVER_URL=http://localhost:8080
19 changes: 10 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
env: {
node: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
},
extends: [
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'plugin:vue/essential',
'plugin:prettier/recommended',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},
};
parserOptions: {
ecmaVersion: 'latest',
parser: '@babel/eslint-parser',
}
}
File renamed without changes.
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"jsonRecursiveSort": true,
"plugins": ["prettier-plugin-sort-json"],
"semi": true,
Expand Down
39 changes: 39 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/favicon.ico">
<title>Dependency-Track</title>
<base href="/" />
</head>
<body class="sidebar-minimized">
<noscript>
<strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script type="module">
(function () {
if (!sessionStorage.length) {
localStorage.setItem('getSessionStorage', Date.now());
}
window.addEventListener('storage', function (event) {
if (event.key == 'getSessionStorage') {
localStorage.setItem('sessionStorage', JSON.stringify(sessionStorage));
localStorage.removeItem('sessionStorage');
} else if (event.key == 'sessionStorage' && !sessionStorage.length) {
var data = JSON.parse(event.newValue);
for (let key in data) {
sessionStorage.setItem(key, data[key]);
}
} else if (event.key == 'sessionInvalidate') {
sessionStorage.clear();
location.reload();
}
});
})();
</script>
</body>
</html>
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
Loading