Skip to content

Commit

Permalink
feat(web): use shared-web
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Sep 1, 2024
1 parent 9d7e90e commit 255cb97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"dev": "vite build --watch"
},
"dependencies": {
"@fortawesome/fontawesome-free": "6.6.0",
"@popperjs/core": "2.11.8",
"@vitejs/plugin-vue": "4.6.2",
"bootstrap": "5.3.3",
"vite": "4.5.2",
"vite-plugin-ejs": "1.6.4",
"@lizardbyte/shared-web": "2024.901.195233",
"vue": "3.4.38",
"vue-i18n": "9.14.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "4.6.2",
"vite": "4.5.2",
"vite-plugin-ejs": "1.6.4"
}
}
5 changes: 2 additions & 3 deletions src_assets/common/assets/web/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

<script>
import ThemeToggle from './ThemeToggle.vue'
import { initDiscord } from '@lizardbyte/shared-web/src/js/discord.js'
export default {
components: { ThemeToggle },
Expand All @@ -48,9 +49,7 @@ export default {
mounted() {
let el = document.querySelector("a[href='" + document.location.pathname + "']");
if (el) el.classList.add("active")
let discordWidget = document.createElement('script')
discordWidget.setAttribute('src', 'https://app.lizardbyte.dev/js/discord.js')
document.head.appendChild(discordWidget)
initDiscord();
}
}
</script>
Expand Down

0 comments on commit 255cb97

Please sign in to comment.