mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-30 01:22:52 +03:00
⬆️ Updates rsup-progress to 3.0.0
This commit is contained in:
parent
c55799ad89
commit
ebae510294
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import ProgressBar from 'rsup-progress';
|
import { Progress } from 'rsup-progress';
|
||||||
import ErrorHandler from '@/utils/ErrorHandler';
|
import ErrorHandler from '@/utils/ErrorHandler';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -44,7 +44,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
appVersion: process.env.VUE_APP_VERSION, // Current version, from package.json
|
appVersion: process.env.VUE_APP_VERSION, // Current version, from package.json
|
||||||
progress: new ProgressBar({ color: 'var(--progress-bar)' }),
|
progress: new Progress({ color: 'var(--progress-bar)' }),
|
||||||
latestVersion: '', // Will store latest version, when request returns
|
latestVersion: '', // Will store latest version, when request returns
|
||||||
checksEnabled: true, // Should we check for updates
|
checksEnabled: true, // Should we check for updates
|
||||||
isUpToDate: true, // Is current version === latest version
|
isUpToDate: true, // Is current version === latest version
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
<script>
|
<script>
|
||||||
// Import libraries
|
// Import libraries
|
||||||
import sha256 from 'crypto-js/sha256';
|
import sha256 from 'crypto-js/sha256';
|
||||||
import ProgressBar from 'rsup-progress';
|
import { Progress } from 'rsup-progress';
|
||||||
// Import form elements
|
// Import form elements
|
||||||
import Button from '@/components/FormElements/Button';
|
import Button from '@/components/FormElements/Button';
|
||||||
import Input from '@/components/FormElements/Input';
|
import Input from '@/components/FormElements/Input';
|
||||||
@ -86,7 +86,7 @@ export default {
|
|||||||
restorePassword: '',
|
restorePassword: '',
|
||||||
restoreCode: '',
|
restoreCode: '',
|
||||||
backupId: localStorage[localStorageKeys.BACKUP_ID] || '',
|
backupId: localStorage[localStorageKeys.BACKUP_ID] || '',
|
||||||
progress: new ProgressBar({ color: 'var(--progress-bar)' }),
|
progress: new Progress({ color: 'var(--progress-bar)' }),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: { // UI components / icons
|
components: { // UI components / icons
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import ProgressBar from 'rsup-progress';
|
import { Progress } from 'rsup-progress';
|
||||||
import VJsoneditor from 'v-jsoneditor';
|
import VJsoneditor from 'v-jsoneditor';
|
||||||
import jsYaml from 'js-yaml';
|
import jsYaml from 'js-yaml';
|
||||||
import ErrorHandler, { InfoHandler, InfoKeys } from '@/utils/ErrorHandler';
|
import ErrorHandler, { InfoHandler, InfoKeys } from '@/utils/ErrorHandler';
|
||||||
@ -83,7 +83,7 @@ export default {
|
|||||||
},
|
},
|
||||||
responseText: '',
|
responseText: '',
|
||||||
saveSuccess: undefined,
|
saveSuccess: undefined,
|
||||||
progress: new ProgressBar({ color: 'var(--progress-bar)' }),
|
progress: new Progress({ color: 'var(--progress-bar)' }),
|
||||||
saveOptions: [
|
saveOptions: [
|
||||||
{ label: this.$t('config-editor.location-disk-label'), value: 'file' },
|
{ label: this.$t('config-editor.location-disk-label'), value: 'file' },
|
||||||
{ label: this.$t('config-editor.location-local-label'), value: 'local' },
|
{ label: this.$t('config-editor.location-local-label'), value: 'local' },
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import ProgressBar from 'rsup-progress';
|
import { Progress } from 'rsup-progress';
|
||||||
import Button from '@/components/FormElements/Button';
|
import Button from '@/components/FormElements/Button';
|
||||||
import RebuildIcon from '@/assets/interface-icons/application-rebuild.svg';
|
import RebuildIcon from '@/assets/interface-icons/application-rebuild.svg';
|
||||||
import ReloadIcon from '@/assets/interface-icons/application-reload.svg';
|
import ReloadIcon from '@/assets/interface-icons/application-reload.svg';
|
||||||
@ -74,7 +74,7 @@ export default {
|
|||||||
output: '',
|
output: '',
|
||||||
message: '',
|
message: '',
|
||||||
allowRebuild: true,
|
allowRebuild: true,
|
||||||
progress: new ProgressBar({ color: 'var(--progress-bar)' }),
|
progress: new Progress({ color: 'var(--progress-bar)' }),
|
||||||
}),
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
/* Calls to the rebuild endpoint, to kickoff the app build */
|
/* Calls to the rebuild endpoint, to kickoff the app build */
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import jsYaml from 'js-yaml';
|
import jsYaml from 'js-yaml';
|
||||||
import ProgressBar from 'rsup-progress';
|
import { Progress } from 'rsup-progress';
|
||||||
|
|
||||||
import Button from '@/components/FormElements/Button';
|
import Button from '@/components/FormElements/Button';
|
||||||
import StoreKeys from '@/utils/StoreMutations';
|
import StoreKeys from '@/utils/StoreMutations';
|
||||||
@ -117,7 +117,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
saveSuccess: undefined,
|
saveSuccess: undefined,
|
||||||
responseText: '',
|
responseText: '',
|
||||||
progress: new ProgressBar({ color: 'var(--progress-bar)' }),
|
progress: new Progress({ color: 'var(--progress-bar)' }),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* Manages loading state, error handling, data updates and user options
|
* Manages loading state, error handling, data updates and user options
|
||||||
*/
|
*/
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import ProgressBar from 'rsup-progress';
|
import { Progress } from 'rsup-progress';
|
||||||
import ErrorHandler from '@/utils/ErrorHandler';
|
import ErrorHandler from '@/utils/ErrorHandler';
|
||||||
import { serviceEndpoints } from '@/utils/defaults';
|
import { serviceEndpoints } from '@/utils/defaults';
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ const WidgetMixin = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
progress: new ProgressBar({ color: 'var(--progress-bar)' }),
|
progress: new Progress({ color: 'var(--progress-bar)' }),
|
||||||
overrideProxyChoice: false,
|
overrideProxyChoice: false,
|
||||||
overrideUpdateInterval: null,
|
overrideUpdateInterval: null,
|
||||||
disableLoader: false, // Prevent ever showing the loader
|
disableLoader: false, // Prevent ever showing the loader
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
// Import Vue.js and vue router
|
// Import Vue.js and vue router
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import Router from 'vue-router';
|
import Router from 'vue-router';
|
||||||
import ProgressBar from 'rsup-progress';
|
import { Progress } from 'rsup-progress';
|
||||||
|
|
||||||
// Import views, that are not lazy-loaded
|
// Import views, that are not lazy-loaded
|
||||||
import Home from '@/views/Home.vue';
|
import Home from '@/views/Home.vue';
|
||||||
@ -19,7 +19,7 @@ import { metaTagData, startingView, routePaths } from '@/utils/defaults';
|
|||||||
import ErrorHandler from '@/utils/ErrorHandler';
|
import ErrorHandler from '@/utils/ErrorHandler';
|
||||||
|
|
||||||
Vue.use(Router);
|
Vue.use(Router);
|
||||||
const progress = new ProgressBar({ color: 'var(--progress-bar)' });
|
const progress = new Progress({ color: 'var(--progress-bar)' });
|
||||||
|
|
||||||
/* Returns true if user is already authenticated, or if auth is not enabled */
|
/* Returns true if user is already authenticated, or if auth is not enabled */
|
||||||
const isAuthenticated = () => {
|
const isAuthenticated = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user