webapp: Only include required icons to reduce file size
This commit is contained in:
parent
d37543fd95
commit
024e16ee85
@ -99,3 +99,23 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue';
|
||||||
|
import {
|
||||||
|
BIconInfoCircle,
|
||||||
|
BIconActivity,
|
||||||
|
BIconBug,
|
||||||
|
BIconChat
|
||||||
|
} from 'bootstrap-icons-vue';
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
components: {
|
||||||
|
BIconInfoCircle,
|
||||||
|
BIconActivity,
|
||||||
|
BIconBug,
|
||||||
|
BIconChat,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
@ -116,11 +116,19 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
import {
|
||||||
|
BIconExclamationCircleFill,
|
||||||
|
BIconArrowLeft,
|
||||||
|
BIconCheckCircle
|
||||||
|
} from 'bootstrap-icons-vue';
|
||||||
import * as bootstrap from 'bootstrap';
|
import * as bootstrap from 'bootstrap';
|
||||||
import BootstrapAlert from "@/components/partials/BootstrapAlert.vue";
|
import BootstrapAlert from "@/components/partials/BootstrapAlert.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
BIconExclamationCircleFill,
|
||||||
|
BIconArrowLeft,
|
||||||
|
BIconCheckCircle,
|
||||||
BootstrapAlert,
|
BootstrapAlert,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@ -74,8 +74,20 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import SparkMD5 from "spark-md5";
|
import SparkMD5 from "spark-md5";
|
||||||
|
import {
|
||||||
|
BIconExclamationCircleFill,
|
||||||
|
BIconArrowLeft,
|
||||||
|
BIconArrowRepeat,
|
||||||
|
BIconCheckCircle
|
||||||
|
} from 'bootstrap-icons-vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
components: {
|
||||||
|
BIconExclamationCircleFill,
|
||||||
|
BIconArrowLeft,
|
||||||
|
BIconArrowRepeat,
|
||||||
|
BIconCheckCircle,
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
@ -122,7 +134,7 @@ export default defineComponent({
|
|||||||
this.uploading = true;
|
this.uploading = true;
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
if (event !== null) {
|
if (event !== null) {
|
||||||
const target= event.target as HTMLInputElement;
|
const target = event.target as HTMLInputElement;
|
||||||
if (target.files !== null) {
|
if (target.files !== null) {
|
||||||
this.file = target.files[0];
|
this.file = target.files[0];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -314,11 +314,23 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import InverterChannelInfo from "@/components/partials/InverterChannelInfo.vue";
|
|
||||||
import * as bootstrap from 'bootstrap';
|
import * as bootstrap from 'bootstrap';
|
||||||
|
import {
|
||||||
|
BIconXCircleFill,
|
||||||
|
BIconExclamationCircleFill,
|
||||||
|
BIconCheckCircleFill,
|
||||||
|
BIconSpeedometer,
|
||||||
|
BIconPower,
|
||||||
|
BIconCpu,
|
||||||
|
BIconJournalText,
|
||||||
|
BIconToggleOn,
|
||||||
|
BIconToggleOff,
|
||||||
|
BIconArrowCounterclockwise
|
||||||
|
} from 'bootstrap-icons-vue';
|
||||||
import EventLog from '@/components/partials/EventLog.vue';
|
import EventLog from '@/components/partials/EventLog.vue';
|
||||||
import DevInfo from '@/components/partials/DevInfo.vue';
|
import DevInfo from '@/components/partials/DevInfo.vue';
|
||||||
import BootstrapAlert from '@/components/partials/BootstrapAlert.vue';
|
import BootstrapAlert from '@/components/partials/BootstrapAlert.vue';
|
||||||
|
import InverterChannelInfo from "@/components/partials/InverterChannelInfo.vue";
|
||||||
|
|
||||||
declare interface Inverter {
|
declare interface Inverter {
|
||||||
serial: number,
|
serial: number,
|
||||||
@ -337,6 +349,16 @@ export default defineComponent({
|
|||||||
EventLog,
|
EventLog,
|
||||||
DevInfo,
|
DevInfo,
|
||||||
BootstrapAlert,
|
BootstrapAlert,
|
||||||
|
BIconXCircleFill,
|
||||||
|
BIconExclamationCircleFill,
|
||||||
|
BIconCheckCircleFill,
|
||||||
|
BIconSpeedometer,
|
||||||
|
BIconPower,
|
||||||
|
BIconCpu,
|
||||||
|
BIconJournalText,
|
||||||
|
BIconToggleOn,
|
||||||
|
BIconToggleOff,
|
||||||
|
BIconArrowCounterclockwise,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -146,6 +146,10 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
import {
|
||||||
|
BIconTrash,
|
||||||
|
BIconPencil
|
||||||
|
} from 'bootstrap-icons-vue';
|
||||||
import * as bootstrap from 'bootstrap';
|
import * as bootstrap from 'bootstrap';
|
||||||
import BootstrapAlert from "@/components/partials/BootstrapAlert.vue";
|
import BootstrapAlert from "@/components/partials/BootstrapAlert.vue";
|
||||||
|
|
||||||
@ -160,6 +164,8 @@ declare interface Inverter {
|
|||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
BootstrapAlert,
|
BootstrapAlert,
|
||||||
|
BIconTrash,
|
||||||
|
BIconPencil,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -184,7 +190,7 @@ export default defineComponent({
|
|||||||
this.getInverters();
|
this.getInverters();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
sortedInverters() {
|
sortedInverters(): Inverter[] {
|
||||||
return this.inverters.slice().sort((a, b) => {
|
return this.inverters.slice().sort((a, b) => {
|
||||||
return a.serial - b.serial;
|
return a.serial - b.serial;
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,7 +10,8 @@
|
|||||||
<td>Model</td>
|
<td>Model</td>
|
||||||
<td v-if="devInfoList.hw_model_name != ''">{{ devInfoList.hw_model_name }}</td>
|
<td v-if="devInfoList.hw_model_name != ''">{{ devInfoList.hw_model_name }}</td>
|
||||||
<td v-else>Unknown model! Please report the "Hardware Part Number" and model (e.g. HM-350) as an issue
|
<td v-else>Unknown model! Please report the "Hardware Part Number" and model (e.g. HM-350) as an issue
|
||||||
<a href="https://github.com/tbnobody/OpenDTU/issues" target="_blank">here</a>.</td>
|
<a href="https://github.com/tbnobody/OpenDTU/issues" target="_blank">here</a>.
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Bootloader Version</td>
|
<td>Bootloader Version</td>
|
||||||
@ -38,6 +39,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
import { BIconInfoSquare } from 'bootstrap-icons-vue';
|
||||||
import BootstrapAlert from '@/components/partials/BootstrapAlert.vue';
|
import BootstrapAlert from '@/components/partials/BootstrapAlert.vue';
|
||||||
|
|
||||||
declare interface DevInfoData {
|
declare interface DevInfoData {
|
||||||
@ -52,6 +54,7 @@ declare interface DevInfoData {
|
|||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
BIconInfoSquare,
|
||||||
BootstrapAlert,
|
BootstrapAlert,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@ -1,9 +1,8 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
import { BootstrapIconsPlugin } from 'bootstrap-icons-vue';
|
|
||||||
|
|
||||||
import "bootstrap/dist/css/bootstrap.min.css"
|
import "bootstrap/dist/css/bootstrap.min.css"
|
||||||
import "bootstrap"
|
import "bootstrap"
|
||||||
|
|
||||||
createApp(App).use(router).use(BootstrapIconsPlugin).mount('#app')
|
createApp(App).use(router).mount('#app')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user