Skip to content

Commit

Permalink
fix: imports and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Dec 16, 2024
1 parent d851f38 commit 973f99f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/KicksModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const kicksForecast = computed(() => {
})
async function fetch() {
if (!props.corteId || !matriculaStudent) {
if (!props.corteId) {
return;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/SubjectReview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { getSubjectReviews, type SubjectReview } from '@/services/next';
import { Chart , type ChartProps } from 'highcharts-vue';
import SubjectTeachersList from './SubjectTeachersList.vue';
import { resolveColorForConcept } from '@/utils/grades-colors'
type ChartOptions = ChartProps['options']
Expand Down
4 changes: 2 additions & 2 deletions src/components/SubjectTeachersList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
<template #default="scope">
<div class="grading">
<el-tooltip v-for="concept in concepts" :key="concept.code" placement="top" :hide-after="0"
:content="`${concept.code}: ${scope.row.concepts[concept.code]['percentage']}% (${scope.row.concepts[concept.code]['count']} notas)`">
:content="`${concept.code}: ${scope.row.concepts[concept.code]['percentage']?.toFixed(0)}% (${scope.row.concepts[concept.code]['count']} notas)`">
<span class="grading-segment" :class="scope.row.count < unthrustableThreshold ? 'unthrustable' : ''" :style="{
background: concept.color,
width: `${scope.row.concepts[concept.code]['percentage']}%`
width: `${scope.row.concepts[concept.code]?.percentage?.toFixed(0)}%`
}">
</span>
</el-tooltip>
Expand Down
4 changes: 3 additions & 1 deletion src/components/TeacherReview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import type { Student } from '@/scripts/sig/homepage';
import { getStudent, getTeacherReviews, type TeacherReview, type Grade } from '@/services/next';
import { type ChartProps, Chart } from 'highcharts-vue';
import { sortBy } from 'lodash-es';
import { useStorage } from '@/composables/useStorage'
import { resolveColorForConcept } from '@/utils/grades-colors'
type ChartOptions = ChartProps['options']
Expand Down Expand Up @@ -224,7 +226,7 @@ watch(filterSelected, (newFilter) => {
v-loading="loading" element-loading="Carregando">

<el-select
class="flex flex-row flex-auto mb-2 w-full"
class="flex flex-row flex-auto mb-2"
placeholder="Selecione a matéria"
v-model="filterSelected"
@change="updateFilter()"
Expand Down
2 changes: 2 additions & 0 deletions src/entrypoints/matricula.content/UFABC-Matricula.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import Teachers from '@/components/Teachers.vue';
import { getComponents } from '@/services/next';
import { render } from 'vue';
import SubjectReview from '@/components/SubjectReview.vue';
import { useStorage } from '@/composables/useStorage'
import { getStudentCourseId, getStudentId } from '@/utils/ufabc-matricula-student'
import type { UFABCMatriculaStudent } from '.';
import type { Student } from '@/scripts/sig/homepage';
Expand Down
1 change: 0 additions & 1 deletion src/entrypoints/matricula.content/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import './style.css';
import 'element-plus/theme-chalk/index.css'
import { getUFEnrolled } from '@/services/ufabc-parser';
import UFABCMatricula from '@/entrypoints/matricula.content/UFABC-Matricula.vue';
import HighchartsVue from 'highcharts-vue';
Expand Down
1 change: 1 addition & 0 deletions src/entrypoints/sig.content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "toastify-js/src/toastify.css";
import '@/assets/tailwind.css'
import { createStudent, syncHistory } from "@/services/next";
import { processingToast, errorToast, successToast } from '@/utils/toasts'
import { calculateQuadrimestres } from '@/utils/season'

export default defineContentScript({
async main() {
Expand Down
6 changes: 3 additions & 3 deletions wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ export default defineConfig({
manifest: {
permissions: ["storage"],
// this is not a secret, is google public hash to validate the extensionId
key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlg7ae7OuGQW9cQU3/qbuewZ6DdTjc1yDXtiwdwoOwgF/CByfjX+yf4addlXcxnLjXVBWwSvRj78mv03lLBjkeh63ia4t/BIzzzvciZyZAKEasC5rt0M6+MKVbkKQS9JGGVFsBiBQcQ6kUP8R4cpWX1G9uEhnshdF+u4Nrs7gq9uXIPZ4pf9PhI/IsPyAsv0m5uO4EHhIMtAp8pFyJfECWWSLchlBoGlaaCyf+fT6SYDsWaw53AcwT5jOJfxdQsoGRKGI5UW8V9+Mw+EDdpTpi7f8E5k604EMqZwmzhYLiXcuUqxeXbNZkyTsUNHXTQFcpNUdmisfjiT50kcxVZVc9wIDAQAB",
// key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlg7ae7OuGQW9cQU3/qbuewZ6DdTjc1yDXtiwdwoOwgF/CByfjX+yf4addlXcxnLjXVBWwSvRj78mv03lLBjkeh63ia4t/BIzzzvciZyZAKEasC5rt0M6+MKVbkKQS9JGGVFsBiBQcQ6kUP8R4cpWX1G9uEhnshdF+u4Nrs7gq9uXIPZ4pf9PhI/IsPyAsv0m5uO4EHhIMtAp8pFyJfECWWSLchlBoGlaaCyf+fT6SYDsWaw53AcwT5jOJfxdQsoGRKGI5UW8V9+Mw+EDdpTpi7f8E5k604EMqZwmzhYLiXcuUqxeXbNZkyTsUNHXTQFcpNUdmisfjiT50kcxVZVc9wIDAQAB",
},
vite: () => ({
plugins: [
AutoImport({
resolvers: [ElementPlusResolver()],
resolvers: [ElementPlusResolver({ importStyle: 'css' })],
}),
Components({
resolvers: [ElementPlusResolver()],
resolvers: [ElementPlusResolver({ importStyle: 'css' })],
}),
],
}),
Expand Down

0 comments on commit 973f99f

Please sign in to comment.