Skip to content

Commit

Permalink
Workflow linter (#3)
Browse files Browse the repository at this point in the history
* Begin build workflow with linter
  • Loading branch information
isontheline authored May 18, 2024
1 parent 702f622 commit dfab65c
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build dRAGon Project

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: microsoft
java-version: 17
- uses: gradle/actions/setup-gradle@v3
- name: Build dRAGon
run: gradle npmInstall npmLint build
5 changes: 0 additions & 5 deletions frontend/babel.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions frontend/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@vue/cli-plugin-babel/preset"
]
}
4 changes: 4 additions & 0 deletions frontend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ plugins {

apply plugin: 'java'

task npmLint(type: NpmTask) {
args = ['run', 'lint']
}

task npmBuild(type: NpmTask) {
inputs.dir("src")
outputs.dir("dist")
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ThemeSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ onMounted(() => {
});
const applyTheme = (theme) => {
PrimeVue.changeTheme(currentTheme.value, theme, 'theme-css', () => { });
PrimeVue.changeTheme(currentTheme.value, theme, 'theme-css', () => {});
currentTheme.value = theme;
localStorage.setItem('darkMode', isDark.value);
};
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/layout/AppTopbar.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<script setup>
import { ref, computed, onMounted, onBeforeUnmount } from 'vue';
import { useLayout } from '@/layout/composables/layout';
import { useRouter } from 'vue-router';
const { layoutConfig, onMenuToggle } = useLayout();
const { onMenuToggle } = useLayout();
const outsideClickListener = ref(null);
const topbarMenuActive = ref(false);
const router = useRouter();
onMounted(() => {
bindOutsideClickListener();
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<template>
<div class="grid">
Soon to be implemented
</div>
<div class="grid">Soon to be implemented</div>
</template>

0 comments on commit dfab65c

Please sign in to comment.