Skip to content

Commit

Permalink
fix(build): Change to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
Loule95450 committed Mar 21, 2023
1 parent abf0e18 commit 1238647
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion front-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"build": "vite build",
"build:check": "vue-tsc",
"preview": "vite preview",
"prelint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix --cache",
"lint": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\""
Expand Down
2 changes: 1 addition & 1 deletion front-end/src/components/RollCallComponents/QrCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<VueQRious :value="url" @change="onDataUrlChange" size="300" />
</div>
</template>
<script>
<script lang="ts">
import VueQRious from 'vue-qrious';
//? Pretty sure size is of type number, not string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script>
<script lang="ts">
export default {
name: 'StudentCell',
props: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script>
<script lang="ts">
import StudentCell from '../RollCallComponents/StudentCell.vue';
export default {
Expand Down
2 changes: 1 addition & 1 deletion front-end/src/views/MaterialsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</div>
</template>

<script>
<script lang="ts">
// Post the data to the API
import axios from 'axios';
Expand Down
2 changes: 1 addition & 1 deletion front-end/src/views/RollCall.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script>
<script lang="ts">
import StudentList from '../components/RollCallComponents/StudentList.vue';
import QrCode from '../components/RollCallComponents/QrCode.vue';
import axios from 'axios';
Expand Down

0 comments on commit 1238647

Please sign in to comment.