From 3b497b0f20b2b4e4cfe73c51e03768340ee2edad Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 5 May 2022 12:19:42 +0800 Subject: [PATCH] remove files --- src/@core/auth/jwt/jwtDefaultConfig.js | 15 - src/@core/auth/jwt/jwtService.js | 111 ---- src/@core/auth/jwt/useJwt.js | 9 - .../app-auto-suggest/AppAutoSuggest.vue | 128 ----- .../app-auto-suggest/useAutoSuggest.js | 55 -- .../components/app-timeline/AppTimeline.vue | 23 - .../app-timeline/AppTimelineItem.vue | 182 ------- src/@core/components/app-tour/AppTour.vue | 117 ----- .../b-card-actions/BCardActions.vue | 195 ------- .../b-card-actions/BCardActionsContainer.vue | 55 -- src/@core/components/b-card-actions/index.js | 2 - .../components/b-card-code/BCardCode.vue | 166 ------ src/@core/components/b-card-code/index.js | 3 - .../components/charts/echart/AppEchartBar.vue | 50 -- .../charts/echart/AppEchartDoughnut.vue | 46 -- .../charts/echart/AppEchartLine.vue | 72 --- .../charts/echart/AppEchartRadar.vue | 73 --- .../charts/echart/AppEchartScatter.vue | 66 --- .../charts/echart/AppEchartStackedArea.vue | 72 --- src/@core/components/charts/echart/theme.json | 475 ------------------ .../StatisticCardHorizontal.vue | 51 -- .../StatisticCardVertical.vue | 49 -- .../StatisticCardWithAreaChart.vue | 83 --- .../StatisticCardWithLineChart.vue | 101 ---- .../statistics-cards/chartOptions.js | 122 ----- 25 files changed, 2321 deletions(-) delete mode 100644 src/@core/auth/jwt/jwtDefaultConfig.js delete mode 100644 src/@core/auth/jwt/jwtService.js delete mode 100644 src/@core/auth/jwt/useJwt.js delete mode 100644 src/@core/components/app-auto-suggest/AppAutoSuggest.vue delete mode 100644 src/@core/components/app-auto-suggest/useAutoSuggest.js delete mode 100644 src/@core/components/app-timeline/AppTimeline.vue delete mode 100644 src/@core/components/app-timeline/AppTimelineItem.vue delete mode 100644 src/@core/components/app-tour/AppTour.vue delete mode 100644 src/@core/components/b-card-actions/BCardActions.vue delete mode 100644 src/@core/components/b-card-actions/BCardActionsContainer.vue delete mode 100644 src/@core/components/b-card-actions/index.js delete mode 100644 src/@core/components/b-card-code/BCardCode.vue delete mode 100644 src/@core/components/b-card-code/index.js delete mode 100644 src/@core/components/charts/echart/AppEchartBar.vue delete mode 100644 src/@core/components/charts/echart/AppEchartDoughnut.vue delete mode 100644 src/@core/components/charts/echart/AppEchartLine.vue delete mode 100644 src/@core/components/charts/echart/AppEchartRadar.vue delete mode 100644 src/@core/components/charts/echart/AppEchartScatter.vue delete mode 100644 src/@core/components/charts/echart/AppEchartStackedArea.vue delete mode 100644 src/@core/components/charts/echart/theme.json delete mode 100644 src/@core/components/statistics-cards/StatisticCardHorizontal.vue delete mode 100644 src/@core/components/statistics-cards/StatisticCardVertical.vue delete mode 100644 src/@core/components/statistics-cards/StatisticCardWithAreaChart.vue delete mode 100644 src/@core/components/statistics-cards/StatisticCardWithLineChart.vue delete mode 100644 src/@core/components/statistics-cards/chartOptions.js diff --git a/src/@core/auth/jwt/jwtDefaultConfig.js b/src/@core/auth/jwt/jwtDefaultConfig.js deleted file mode 100644 index 9ec9c237..00000000 --- a/src/@core/auth/jwt/jwtDefaultConfig.js +++ /dev/null @@ -1,15 +0,0 @@ -export default { - // Endpoints - loginEndpoint: '/jwt/login', - registerEndpoint: '/jwt/register', - refreshEndpoint: '/jwt/refresh-token', - logoutEndpoint: '/jwt/logout', - - // This will be prefixed in authorization header with token - // e.g. Authorization: Bearer - tokenType: 'Bearer', - - // Value of this property will be used as key to store JWT token in storage - storageTokenKeyName: 'accessToken', - storageRefreshTokenKeyName: 'refreshToken', -} diff --git a/src/@core/auth/jwt/jwtService.js b/src/@core/auth/jwt/jwtService.js deleted file mode 100644 index 51c24f57..00000000 --- a/src/@core/auth/jwt/jwtService.js +++ /dev/null @@ -1,111 +0,0 @@ -import jwtDefaultConfig from './jwtDefaultConfig' - -export default class JwtService { - // Will be used by this service for making API calls - axiosIns = null - - // jwtConfig <= Will be used by this service - jwtConfig = { ...jwtDefaultConfig } - - // For Refreshing Token - isAlreadyFetchingAccessToken = false - - // For Refreshing Token - subscribers = [] - - constructor(axiosIns, jwtOverrideConfig) { - this.axiosIns = axiosIns - this.jwtConfig = { ...this.jwtConfig, ...jwtOverrideConfig } - - // Request Interceptor - this.axiosIns.interceptors.request.use( - config => { - // Get token from localStorage - const accessToken = this.getToken() - - // If token is present add it to request's Authorization Header - if (accessToken) { - // eslint-disable-next-line no-param-reassign - config.headers.Authorization = `${this.jwtConfig.tokenType} ${accessToken}` - } - return config - }, - error => Promise.reject(error), - ) - - // Add request/response interceptor - this.axiosIns.interceptors.response.use( - response => response, - error => { - // const { config, response: { status } } = error - const { config, response } = error - const originalRequest = config - - // if (status === 401) { - if (response && response.status === 401) { - if (!this.isAlreadyFetchingAccessToken) { - this.isAlreadyFetchingAccessToken = true - this.refreshToken().then(r => { - this.isAlreadyFetchingAccessToken = false - - // Update accessToken in localStorage - this.setToken(r.data.accessToken) - this.setRefreshToken(r.data.refreshToken) - - this.onAccessTokenFetched(r.data.accessToken) - }) - } - const retryOriginalRequest = new Promise(resolve => { - this.addSubscriber(accessToken => { - // Make sure to assign accessToken according to your response. - // Check: https://pixinvent.ticksy.com/ticket/2413870 - // Change Authorization header - originalRequest.headers.Authorization = `${this.jwtConfig.tokenType} ${accessToken}` - resolve(this.axiosIns(originalRequest)) - }) - }) - return retryOriginalRequest - } - return Promise.reject(error) - }, - ) - } - - onAccessTokenFetched(accessToken) { - this.subscribers = this.subscribers.filter(callback => callback(accessToken)) - } - - addSubscriber(callback) { - this.subscribers.push(callback) - } - - getToken() { - return localStorage.getItem(this.jwtConfig.storageTokenKeyName) - } - - getRefreshToken() { - return localStorage.getItem(this.jwtConfig.storageRefreshTokenKeyName) - } - - setToken(value) { - localStorage.setItem(this.jwtConfig.storageTokenKeyName, value) - } - - setRefreshToken(value) { - localStorage.setItem(this.jwtConfig.storageRefreshTokenKeyName, value) - } - - login(...args) { - return this.axiosIns.post(this.jwtConfig.loginEndpoint, ...args) - } - - register(...args) { - return this.axiosIns.post(this.jwtConfig.registerEndpoint, ...args) - } - - refreshToken() { - return this.axiosIns.post(this.jwtConfig.refreshEndpoint, { - refreshToken: this.getRefreshToken(), - }) - } -} diff --git a/src/@core/auth/jwt/useJwt.js b/src/@core/auth/jwt/useJwt.js deleted file mode 100644 index 85e31c00..00000000 --- a/src/@core/auth/jwt/useJwt.js +++ /dev/null @@ -1,9 +0,0 @@ -import JwtService from './jwtService' - -export default function useJwt(axiosIns, jwtOverrideConfig) { - const jwt = new JwtService(axiosIns, jwtOverrideConfig) - - return { - jwt, - } -} diff --git a/src/@core/components/app-auto-suggest/AppAutoSuggest.vue b/src/@core/components/app-auto-suggest/AppAutoSuggest.vue deleted file mode 100644 index 7d2fde54..00000000 --- a/src/@core/components/app-auto-suggest/AppAutoSuggest.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/src/@core/components/app-auto-suggest/useAutoSuggest.js b/src/@core/components/app-auto-suggest/useAutoSuggest.js deleted file mode 100644 index 443f8155..00000000 --- a/src/@core/components/app-auto-suggest/useAutoSuggest.js +++ /dev/null @@ -1,55 +0,0 @@ -import { ref, watch } from '@vue/composition-api' - -export default function useAutoSuggest(props) { - const filteredData = ref({}) - - /** - * Filter group against provided query - * Grp Structure: - * { - * key: 'title', - * data: [ - * title: 'Admin', img: 'someImage.png', - * title: 'Template', img: 'otherImage.png', - * ] - * } - * @param {Object} grp Group object to perform filter on - * @param {String} query Query string to filter - */ - const filterGrp = (grp, query) => { - const exactEle = grp.data.filter(item => item[grp.key].toLowerCase().startsWith(query.toLowerCase())) - const containEle = grp.data.filter( - // prettier-ignore - item => !item[grp.key].toLowerCase().startsWith(query.toLowerCase()) && item[grp.key].toLowerCase().indexOf(query.toLowerCase()) > -1, - ) - return exactEle.concat(containEle).slice(0, props.searchLimit) - } - - const searchQuery = ref('') - const resetsearchQuery = () => { - searchQuery.value = '' - } - - const handleSearchQueryUpdate = val => { - if (val === '') { - filteredData.value = {} - } else { - const queriedData = {} - const dataGrps = Object.keys(props.data) - - dataGrps.forEach((grp, i) => { - queriedData[dataGrps[i]] = filterGrp(props.data[grp], val) - }) - - filteredData.value = queriedData - } - } - - watch(searchQuery, val => handleSearchQueryUpdate(val)) - - return { - searchQuery, - resetsearchQuery, - filteredData, - } -} diff --git a/src/@core/components/app-timeline/AppTimeline.vue b/src/@core/components/app-timeline/AppTimeline.vue deleted file mode 100644 index 7cff30a8..00000000 --- a/src/@core/components/app-timeline/AppTimeline.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/src/@core/components/app-timeline/AppTimelineItem.vue b/src/@core/components/app-timeline/AppTimelineItem.vue deleted file mode 100644 index 88897b85..00000000 --- a/src/@core/components/app-timeline/AppTimelineItem.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/src/@core/components/app-tour/AppTour.vue b/src/@core/components/app-tour/AppTour.vue deleted file mode 100644 index d4e5def6..00000000 --- a/src/@core/components/app-tour/AppTour.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - - diff --git a/src/@core/components/b-card-actions/BCardActions.vue b/src/@core/components/b-card-actions/BCardActions.vue deleted file mode 100644 index f2e2f672..00000000 --- a/src/@core/components/b-card-actions/BCardActions.vue +++ /dev/null @@ -1,195 +0,0 @@ - - - - - diff --git a/src/@core/components/b-card-actions/BCardActionsContainer.vue b/src/@core/components/b-card-actions/BCardActionsContainer.vue deleted file mode 100644 index d60744ae..00000000 --- a/src/@core/components/b-card-actions/BCardActionsContainer.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - diff --git a/src/@core/components/b-card-actions/index.js b/src/@core/components/b-card-actions/index.js deleted file mode 100644 index 5bb9c908..00000000 --- a/src/@core/components/b-card-actions/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { default as BCardActions } from './BCardActions.vue' -export { default as BCardActionsContainer } from './BCardActionsContainer.vue' diff --git a/src/@core/components/b-card-code/BCardCode.vue b/src/@core/components/b-card-code/BCardCode.vue deleted file mode 100644 index 501ba22a..00000000 --- a/src/@core/components/b-card-code/BCardCode.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - - - diff --git a/src/@core/components/b-card-code/index.js b/src/@core/components/b-card-code/index.js deleted file mode 100644 index 7425748b..00000000 --- a/src/@core/components/b-card-code/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import BCardCode from './BCardCode.vue' - -export default BCardCode diff --git a/src/@core/components/charts/echart/AppEchartBar.vue b/src/@core/components/charts/echart/AppEchartBar.vue deleted file mode 100644 index 68766bff..00000000 --- a/src/@core/components/charts/echart/AppEchartBar.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/src/@core/components/charts/echart/AppEchartDoughnut.vue b/src/@core/components/charts/echart/AppEchartDoughnut.vue deleted file mode 100644 index c99979a8..00000000 --- a/src/@core/components/charts/echart/AppEchartDoughnut.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - diff --git a/src/@core/components/charts/echart/AppEchartLine.vue b/src/@core/components/charts/echart/AppEchartLine.vue deleted file mode 100644 index 268586fb..00000000 --- a/src/@core/components/charts/echart/AppEchartLine.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - diff --git a/src/@core/components/charts/echart/AppEchartRadar.vue b/src/@core/components/charts/echart/AppEchartRadar.vue deleted file mode 100644 index 71da6ddc..00000000 --- a/src/@core/components/charts/echart/AppEchartRadar.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - diff --git a/src/@core/components/charts/echart/AppEchartScatter.vue b/src/@core/components/charts/echart/AppEchartScatter.vue deleted file mode 100644 index 66ac6b97..00000000 --- a/src/@core/components/charts/echart/AppEchartScatter.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - diff --git a/src/@core/components/charts/echart/AppEchartStackedArea.vue b/src/@core/components/charts/echart/AppEchartStackedArea.vue deleted file mode 100644 index 73202d3f..00000000 --- a/src/@core/components/charts/echart/AppEchartStackedArea.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - diff --git a/src/@core/components/charts/echart/theme.json b/src/@core/components/charts/echart/theme.json deleted file mode 100644 index d40b7095..00000000 --- a/src/@core/components/charts/echart/theme.json +++ /dev/null @@ -1,475 +0,0 @@ -{ - "color": [ - "#826AF9", - "#9F87FF", - "#D2B0FF", - "#F8D3FF" - ], - "backgroundColor": "rgba(0,0,0,0)", - "textStyle": {}, - "title": { - "textStyle": { - "color": "#666666" - }, - "subtextStyle": { - "color": "#999999" - } - }, - "line": { - "itemStyle": { - "normal": { - "borderWidth": "1" - } - }, - "lineStyle": { - "normal": { - "width": "1" - } - }, - "symbolSize": "10", - "symbol": "emptyCircle", - "smooth": false - }, - "radar": { - "itemStyle": { - "normal": { - "borderWidth": "2" - } - }, - "lineStyle": { - "normal": { - "width": "3" - } - }, - "symbolSize": "10", - "symbol": "emptyCircle", - "smooth": true - }, - "bar": { - "itemStyle": { - "normal": { - "barBorderWidth": "0", - "barBorderColor": "#444444" - }, - "emphasis": { - "barBorderWidth": "0", - "barBorderColor": "#444444" - } - } - }, - "pie": { - "itemStyle": { - "normal": { - "borderWidth": "0", - "borderColor": "#444444" - }, - "emphasis": { - "borderWidth": "0", - "borderColor": "#444444" - } - } - }, - "scatter": { - "itemStyle": { - "normal": { - "borderWidth": "0", - "borderColor": "#444444" - }, - "emphasis": { - "borderWidth": "0", - "borderColor": "#444444" - } - } - }, - "boxplot": { - "itemStyle": { - "normal": { - "borderWidth": "0", - "borderColor": "#444444" - }, - "emphasis": { - "borderWidth": "0", - "borderColor": "#444444" - } - } - }, - "parallel": { - "itemStyle": { - "normal": { - "borderWidth": "0", - "borderColor": "#444444" - }, - "emphasis": { - "borderWidth": "0", - "borderColor": "#444444" - } - } - }, - "sankey": { - "itemStyle": { - "normal": { - "borderWidth": "0", - "borderColor": "#444444" - }, - "emphasis": { - "borderWidth": "0", - "borderColor": "#444444" - } - } - }, - "funnel": { - "itemStyle": { - "normal": { - "borderWidth": "0", - "borderColor": "#444444" - }, - "emphasis": { - "borderWidth": "0", - "borderColor": "#444444" - } - } - }, - "gauge": { - "itemStyle": { - "normal": { - "borderWidth": "0", - "borderColor": "#444444" - }, - "emphasis": { - "borderWidth": "0", - "borderColor": "#444444" - } - } - }, - "candlestick": { - "itemStyle": { - "normal": { - "color": "#d0648a", - "color0": "#ffffff", - "borderColor": "#d0648a", - "borderColor0": "#22c3aa", - "borderWidth": 1 - } - } - }, - "graph": { - "itemStyle": { - "normal": { - "borderWidth": "0", - "borderColor": "#444444" - } - }, - "lineStyle": { - "normal": { - "width": 1, - "color": "#aaa" - } - }, - "symbolSize": "10", - "symbol": "emptyCircle", - "smooth": true, - "color": [ - "#4ea397", - "#22c3aa", - "#7bd9a5" - ], - "label": { - "normal": { - "textStyle": { - "color": "#ffffff" - } - } - } - }, - "map": { - "itemStyle": { - "normal": { - "areaColor": "#eeeeee", - "borderColor": "#999999", - "borderWidth": "0.5" - }, - "emphasis": { - "areaColor": "rgba(34,195,170,0.25)", - "borderColor": "#22c3aa", - "borderWidth": "0.5" - } - }, - "label": { - "normal": { - "textStyle": { - "color": "#28544e" - } - }, - "emphasis": { - "textStyle": { - "color": "rgb(52,158,142)" - } - } - } - }, - "geo": { - "itemStyle": { - "normal": { - "areaColor": "#eeeeee", - "borderColor": "#999999", - "borderWidth": "0.5" - }, - "emphasis": { - "areaColor": "rgba(34,195,170,0.25)", - "borderColor": "#22c3aa", - "borderWidth": "0.5" - } - }, - "label": { - "normal": { - "textStyle": { - "color": "#28544e" - } - }, - "emphasis": { - "textStyle": { - "color": "rgb(52,158,142)" - } - } - } - }, - "categoryAxis": { - "axisLine": { - "show": true, - "lineStyle": { - "color": "#cccccc" - } - }, - "axisTick": { - "show": false, - "lineStyle": { - "color": "#333333" - } - }, - "axisLabel": { - "show": true, - "textStyle": { - "color": "#999999" - } - }, - "splitLine": { - "show": true, - "lineStyle": { - "color": [ - "#eeeeee" - ] - } - }, - "splitArea": { - "show": false, - "areaStyle": { - "color": [ - "rgba(250,250,250,0.3)", - "rgba(200,200,200,0.3)" - ] - } - } - }, - "valueAxis": { - "axisLine": { - "show": true, - "lineStyle": { - "color": "#cccccc" - } - }, - "axisTick": { - "show": false, - "lineStyle": { - "color": "#333333" - } - }, - "axisLabel": { - "show": true, - "textStyle": { - "color": "#999999" - } - }, - "splitLine": { - "show": true, - "lineStyle": { - "color": [ - "#eeeeee" - ] - } - }, - "splitArea": { - "show": false, - "areaStyle": { - "color": [ - "rgba(250,250,250,0.3)", - "rgba(200,200,200,0.3)" - ] - } - } - }, - "logAxis": { - "axisLine": { - "show": true, - "lineStyle": { - "color": "#cccccc" - } - }, - "axisTick": { - "show": false, - "lineStyle": { - "color": "#333333" - } - }, - "axisLabel": { - "show": true, - "textStyle": { - "color": "#999999" - } - }, - "splitLine": { - "show": true, - "lineStyle": { - "color": [ - "#eeeeee" - ] - } - }, - "splitArea": { - "show": false, - "areaStyle": { - "color": [ - "rgba(250,250,250,0.3)", - "rgba(200,200,200,0.3)" - ] - } - } - }, - "timeAxis": { - "axisLine": { - "show": true, - "lineStyle": { - "color": "#cccccc" - } - }, - "axisTick": { - "show": false, - "lineStyle": { - "color": "#333333" - } - }, - "axisLabel": { - "show": true, - "textStyle": { - "color": "#999999" - } - }, - "splitLine": { - "show": true, - "lineStyle": { - "color": [ - "#eeeeee" - ] - } - }, - "splitArea": { - "show": false, - "areaStyle": { - "color": [ - "rgba(250,250,250,0.3)", - "rgba(200,200,200,0.3)" - ] - } - } - }, - "toolbox": { - "iconStyle": { - "normal": { - "borderColor": "#aaaaaa" - }, - "emphasis": { - "borderColor": "#666" - } - } - }, - "legend": { - "textStyle": { - "color": "#999999" - } - }, - "tooltip": { - "axisPointer": { - "lineStyle": { - "color": "#ccc", - "width": 1 - }, - "crossStyle": { - "color": "#ccc", - "width": 1 - } - } - }, - "timeline": { - "lineStyle": { - "color": "#349e8e", - "width": 1 - }, - "itemStyle": { - "normal": { - "color": "#349e8e", - "borderWidth": "1" - }, - "emphasis": { - "color": "#57e8d2" - } - }, - "controlStyle": { - "normal": { - "color": "#349e8e", - "borderColor": "#349e8e", - "borderWidth": "0" - } - }, - "checkpointStyle": { - "color": "#22c3aa", - "borderColor": "rgba(34,195,170,0.25)" - }, - "label": { - "normal": { - "textStyle": { - "color": "#349e8e" - } - } - } - }, - "visualMap": { - "color": [ - "#d0648a", - "#22c3aa", - "rgba(123,217,165,0.2)" - ] - }, - "dataZoom": { - "backgroundColor": "#fff", - "dataBackgroundColor": "#dedede", - "fillerColor": "rgba(34,195,170,0.25)", - "handleColor": "#dddddd", - "handleSize": "100%", - "textStyle": { - "color": "#999" - } - }, - "markPoint": { - "label": { - "normal": { - "textStyle": { - "color": "#ffffff" - } - }, - "emphasis": { - "textStyle": { - "color": "#ffffff" - } - } - } - } -} diff --git a/src/@core/components/statistics-cards/StatisticCardHorizontal.vue b/src/@core/components/statistics-cards/StatisticCardHorizontal.vue deleted file mode 100644 index 477cb341..00000000 --- a/src/@core/components/statistics-cards/StatisticCardHorizontal.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/src/@core/components/statistics-cards/StatisticCardVertical.vue b/src/@core/components/statistics-cards/StatisticCardVertical.vue deleted file mode 100644 index 8d94ab0b..00000000 --- a/src/@core/components/statistics-cards/StatisticCardVertical.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/src/@core/components/statistics-cards/StatisticCardWithAreaChart.vue b/src/@core/components/statistics-cards/StatisticCardWithAreaChart.vue deleted file mode 100644 index dc780624..00000000 --- a/src/@core/components/statistics-cards/StatisticCardWithAreaChart.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - diff --git a/src/@core/components/statistics-cards/StatisticCardWithLineChart.vue b/src/@core/components/statistics-cards/StatisticCardWithLineChart.vue deleted file mode 100644 index 0323f5e2..00000000 --- a/src/@core/components/statistics-cards/StatisticCardWithLineChart.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/src/@core/components/statistics-cards/chartOptions.js b/src/@core/components/statistics-cards/chartOptions.js deleted file mode 100644 index f2f85e9d..00000000 --- a/src/@core/components/statistics-cards/chartOptions.js +++ /dev/null @@ -1,122 +0,0 @@ -import { $themeColors } from '@themeConfig' - -export const areaChartOptions = { - grid: { - show: false, - padding: { - left: 0, - right: 0, - }, - }, - chart: { - toolbar: { - show: false, - }, - sparkline: { - enabled: true, - }, - }, - dataLabels: { - enabled: false, - }, - stroke: { - curve: 'smooth', - width: 2.5, - }, - fill: { - type: 'gradient', - gradient: { - shadeIntensity: 0.9, - opacityFrom: 0.5, - opacityTo: 0.2, - stops: [0, 80, 100], - }, - }, - xaxis: { - type: 'numeric', - lines: { - show: false, - }, - axisBorder: { - show: false, - }, - labels: { show: false }, - }, - yaxis: [ - { - y: 0, - offsetX: 0, - offsetY: 0, - padding: { - left: 0, - right: 0, - }, - }, - ], - tooltip: { - x: { show: false }, - }, - theme: { - monochrome: { - enabled: true, - color: $themeColors.primary, - shadeTo: 'light', - shadeIntensity: 0.65, - }, - }, -} - -export const lineChartOptions = { - grid: { - show: false, - padding: { - left: 0, - right: 0, - }, - }, - chart: { - type: 'line', - dropShadow: { - enabled: true, - top: 5, - left: 0, - blur: 4, - opacity: 0.1, - }, - toolbar: { - show: false, - }, - sparkline: { - enabled: true, - }, - }, - stroke: { - width: 5, - curve: 'smooth', - }, - xaxis: { - type: 'numeric', - }, - colors: [$themeColors.primary], - fill: { - type: 'gradient', - gradient: { - shade: 'dark', - gradientToColors: ['#A9A2F6'], - shadeIntensity: 1, - type: 'horizontal', - opacityFrom: 1, - opacityTo: 1, - stops: [0, 100, 100, 100], - }, - }, - markers: { - size: 0, - hover: { - size: 5, - }, - }, - tooltip: { - x: { show: false }, - }, -}