This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// chart.client.ts | |
import ECharts from 'vue-echarts' | |
import { use } from 'echarts/core' | |
// import 'echarts' // all library | |
// import 'echarts/lib/chart/bar' | |
// import 'echarts/lib/chart/line' | |
// import 'echarts/lib/chart/pie' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineStore } from 'pinia' | |
export const useProductStore = defineStore('product', { | |
state: () => ({ | |
products: [], | |
isFetchingProducts: false | |
}), | |
getters: { | |
categories () { | |
const categoryList = this.products |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Optional API | |
<script> | |
export default { | |
data() { | |
return { | |
listItems: [] | |
} | |
}, | |
methods: { | |
async getData() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
const Dotenv = require("dotenv-webpack"); | |
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); | |
const TerserPlugin = require("terser-webpack-plugin"); | |
let appConf = (env) => { | |
return { | |
mode: env.NODE_ENV, | |
devtool: "nosources-source-map", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="container"> | |
<div class="row align-items-center"> | |
<AsAccordion> | |
<AsAccordionTitle> | |
<h3 class="as-text-16-bold"> | |
Lorem ipsum dolor sit amet consectetur. | |
</h3> | |
</AsAccordionTitle> | |
<AsAccordionContent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--as-color-white: #fff; | |
--as-color-divider: #d9dde3; | |
--as-color-gray-soft: #f3f4f6; | |
} | |
.as-accordion { | |
margin-bottom: 0.875rem; | |
&__header { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="as-accordion__body" v-if="visible()"> | |
<div class="as-accordion__content"> | |
<slot /> | |
</div> | |
</div> | |
</template> | |
<script setup> | |
import { inject } from "vue"; |
NewerOlder