mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-25 09:16:15 -04:00
chore(lint): switched to a better lint config
This commit is contained in:
parent
4d2b037dbe
commit
33c9b6643f
178 changed files with 4105 additions and 3371 deletions
|
@ -1,3 +1,7 @@
|
|||
<script lang="ts" setup>
|
||||
const variants = ['warning'] as const;
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<c-alert v-for="variant in variants" :key="variant" :type="variant" mb-4>
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni reprehenderit itaque enim? Suscipit magni optio velit
|
||||
|
@ -5,7 +9,3 @@
|
|||
odio!
|
||||
</c-alert>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const variants = ['warning'] as const;
|
||||
</script>
|
||||
|
|
|
@ -2,7 +2,6 @@ import { darken } from '../color/color.models';
|
|||
import { defineThemes } from '../theme/theme.models';
|
||||
import { appThemes } from '../theme/themes';
|
||||
|
||||
// eslint-disable-next-line
|
||||
import WarningIcon from '~icons/mdi/alert-circle-outline';
|
||||
|
||||
export const { useTheme } = defineThemes({
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
<script lang="ts" setup>
|
||||
import { useTheme } from './c-alert.theme';
|
||||
|
||||
const props = withDefaults(defineProps<{ type?: 'warning' }>(), { type: 'warning' });
|
||||
const { type } = toRefs(props);
|
||||
|
||||
const theme = useTheme();
|
||||
const variantTheme = computed(() => theme.value[type.value]);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="c-alert" flex items-center b-rd-4px pa-5>
|
||||
<div class="c-alert--icon" mr-4 text-40px op-60>
|
||||
|
@ -12,16 +22,6 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useTheme } from './c-alert.theme';
|
||||
|
||||
const props = withDefaults(defineProps<{ type?: 'warning' }>(), { type: 'warning' });
|
||||
const { type } = toRefs(props);
|
||||
|
||||
const theme = useTheme();
|
||||
const variantTheme = computed(() => theme.value[type.value]);
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.c-alert {
|
||||
background-color: v-bind('variantTheme.backgroundColor');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue