Skip to content

Commit

Permalink
Refactor frontend services (#302)
Browse files Browse the repository at this point in the history
* refactor frontend services and locally add all fonts.

* minor frontend improvements
  • Loading branch information
blockisec authored Nov 10, 2024
1 parent 3b35337 commit 1f5ab5d
Show file tree
Hide file tree
Showing 227 changed files with 1,732 additions and 3,127 deletions.
100 changes: 50 additions & 50 deletions frontend/package-lock.json

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

48 changes: 24 additions & 24 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@
"lint": "eslint --fix . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
"@primevue/themes": "^4.0.0",
"chart.js": "4.4.5",
"primeicons": "^6.0.1",
"primevue": "^4.0.0",
"vue": "^3.4.34",
"vue-router": "^4.4.0",
"pinia": "^2.1.7",
"axios": "^1.4.0",
"@fortawesome/fontawesome-free": "^6.6.0",
"@primevue/themes": "^4.1.1",
"chart.js": "^4.4.6",
"primeicons": "^7.0.0",
"primevue": "^4.1.1",
"vue": "^3.5.12",
"vue-router": "^4.4.5",
"pinia": "^2.2.5",
"axios": "^1.7.7",
"easymde": "^2.18.0",
"flag-icons": "^7.2.3",
"markdown-it": "^14.0.0"
"markdown-it": "^14.1.0"
},
"devDependencies": {
"@primevue/auto-import-resolver": "^4.0.1",
"@rushstack/eslint-patch": "^1.8.0",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/eslint-config-prettier": "^10.0.0",
"autoprefixer": "^10.4.19",
"eslint": "^9.0.0",
"eslint-plugin-vue": "^9.23.0",
"postcss": "^8.4.40",
"prettier": "^3.2.5",
"sass": "^1.55.0",
"tailwindcss": "^3.4.6",
"tailwindcss-primeui": "^0.3.2",
"unplugin-vue-components": "^0.27.3",
"vite": "^5.3.1"
"@primevue/auto-import-resolver": "^4.1.1",
"@rushstack/eslint-patch": "^1.10.4",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/eslint-config-prettier": "^10.1.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.13.0",
"eslint-plugin-vue": "^9.30.0",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"sass": "^1.80.5",
"tailwindcss": "^3.4.14",
"tailwindcss-primeui": "^0.3.4",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.10"
}
}
Binary file removed frontend/public/fonts/lato/Lato-Black.woff.1
Binary file not shown.
Binary file removed frontend/public/fonts/lato/Lato-BlackItalic.woff.1
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-Bold.woff
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-BoldItalic.woff
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-ExtraBold.woff
Binary file not shown.
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-Italic.woff
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-Light.woff
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-LightItalic.woff
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-Medium.woff
Binary file not shown.
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-Regular.woff
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-SemiBold.woff
Binary file not shown.
Binary file not shown.
Binary file added frontend/public/fonts/lato/Lato-Thin.woff
Binary file not shown.
64 changes: 13 additions & 51 deletions frontend/public/fonts/lato/lato.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,22 @@
font-family: lato;
font-style: normal;
font-weight: 400;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Regular.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 400;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Regular.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-Regular.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 400;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Italic.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-Italic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 400;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Italic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 250;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Thin.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-Thin.woff) format('woff')
}

@font-face {
Expand Down Expand Up @@ -68,102 +55,77 @@
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-ExtraLightItalic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 300;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Light.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 300;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Light.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-Light.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 300;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-LightItalic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 300;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-LightItalic.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-LightItalic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 500;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Medium.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-Medium.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 500;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-MediumItalic.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-MediumItalic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 600;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-SemiBold.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-SemiBold.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 600;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-SemiBoldItalic.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-SemiBoldItalic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 700;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Bold.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 700;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-Bold.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-Bold.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 700;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-BoldItalic.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-BoldItalic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 700;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-BoldItalic.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: normal;
font-weight: 800;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-ExtraBold.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-ExtraBold.woff) format('woff')
}

@font-face {
font-family: lato;
font-style: italic;
font-weight: 800;
src: local('Lato'), url(https://fonts.cdnfonts.com/s/14882/Lato-ExtraBoldItalic.woff) format('woff')
src: local('Lato'), url(/fonts/lato/Lato-ExtraBoldItalic.woff) format('woff')
}

@font-face {
Expand Down
9 changes: 4 additions & 5 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<script>
import AuthService from '@/service/AuthService';
export default {
created() {
const authService = new AuthService();
authService.checkAuth(this.$api);
this.$api.get(this.$api.e.authCheck).then((response) => {
this.$api.updateCSRFToken(response.data);
});
}
};
</script>

<template>
<router-view />
</template>
</template>
Loading

0 comments on commit 1f5ab5d

Please sign in to comment.