Skip to content

Commit 5bc748a

Browse files
committed
refactor: remove 'vue-demi'
1 parent ce7830f commit 5bc748a

File tree

377 files changed

+590
-592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

377 files changed

+590
-592
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/public/js/** linguist-vendored

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
"vue": "3.5.13",
134134
"vue-collapsed": "^1.2.5",
135135
"vue-content-loader": "^2.0.1",
136-
"vue-demi": "0.14.10",
137136
"vue-router": "4.5.1",
138137
"vuedraggable": "next",
139138
"webfontloader": "1.6.28",

packages/eslint-config-persona/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Optional, add this to `package.json` script's:
4343
"scripts": {
4444
// ...
4545
"lint": "eslint . --ext .js,.vue,.ts --format pretty",
46-
"fix": "yarn lint:js --fix",
46+
"fix": "yarn lint --fix",
4747
// ...
4848
}
4949
// ...

packages/eslint-config-persona/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ module.exports = {
101101
'align-assignments/align-assignments' : [2, { requiresOnly: false }],
102102
'vue/multi-word-component-names' : 'off',
103103
'vue/no-reserved-component-names' : 'off',
104+
'vue/return-in-computed-property' : 'off',
104105
'vue/html-closing-bracket-newline' : [
105106
'error',
106107
{

packages/persona/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
"tiptap-extension-font-size": "^1.2.0",
103103
"ufo": "^1.5.4",
104104
"vue-collapsed": "1.3.4",
105-
"vue-demi": "0.14.10",
106105
"vuedraggable": "next",
107106
"webfontloader": "1.6.28",
108107
"zxcvbn": "4.4.2"

src/assets/icon/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import pFormGroup from '../../components/form-group/FormGroup.vue'
1717
import pLabel from '../../components/label/Label.vue'
1818
import PiDownload16 from '@privyid/persona-icon/vue/download/16.vue'
1919
import { createSpinner } from '../../components/avatar/utils/create-image'
20-
import { computed, ref } from 'vue-demi'
20+
import { computed, ref } from 'vue'
2121
import {
2222
groupBy,
2323
sortBy,

src/assets/ilustration/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import pFormGroup from '../../components/form-group/FormGroup.vue'
1919
import pLabel from '../../components/label/Label.vue'
2020
import PiDownload16 from '@privyid/persona-icon/vue/download/16.vue'
2121
import { createSpinner } from '../../components/avatar/utils/create-image'
22-
import { computed, ref } from 'vue-demi'
22+
import { computed, ref } from 'vue'
2323
import {
2424
groupBy,
2525
sortBy,

src/components/accordion/Accordion.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render, fireEvent } from '@testing-library/vue'
2-
import { ref } from 'vue-demi'
2+
import { ref } from 'vue'
33
import pAccordion from './Accordion.vue'
44
import pAccordionItem from './AccordionItem.vue'
55
import { defineAccordion } from '.'

src/components/accordion/Accordion.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
<script lang="ts" setup>
2525
import { useVModel } from '../input'
2626
import { type AccordionItem } from '.'
27-
import type { PropType } from 'vue-demi'
28-
import { computed } from 'vue-demi'
27+
import type { PropType } from 'vue'
28+
import { computed } from 'vue'
2929
import Item from './AccordionItem.vue'
3030
import AccordionItems from './AccordionItems.vue'
3131

src/components/accordion/AccordionItem.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { render, fireEvent } from '@testing-library/vue'
22
import { vi } from 'vitest'
33
import pAccordionItem from './AccordionItem.vue'
44
import iconPrivy from '@privyid/persona-icon/vue/privy-alt/24.vue'
5-
import { markRaw } from 'vue-demi'
5+
import { markRaw } from 'vue'
66

77
it('should render properly without any props', () => {
88
const screen = render({
@@ -125,8 +125,8 @@ it('Should be able to add custom title class from `titleClass` props', () => {
125125
const screen = render({
126126
components: { pAccordionItem },
127127
template : `
128-
<p-accordion-item
129-
title="custom title class"
128+
<p-accordion-item
129+
title="custom title class"
130130
titleClass="custom-title-class">
131131
content
132132
</p-accordion-item>
@@ -143,7 +143,7 @@ it('Should be able to add custom content class from `contentClass` props', () =>
143143
const screen = render({
144144
components: { pAccordionItem },
145145
template : `
146-
<p-accordion-item
146+
<p-accordion-item
147147
title="custom content class"
148148
contentClass="custom-content-class">
149149
content
@@ -182,7 +182,7 @@ it('Should be able to custom icon via `icon` props', () => {
182182
const screen = render({
183183
components: { pAccordionItem },
184184
template : `
185-
<p-accordion-item
185+
<p-accordion-item
186186
title="custom icon class"
187187
icon="http://lorem-picsum.com">
188188
content
@@ -208,7 +208,7 @@ it('should be able to custom icon with Component and add custom icon class via `
208208
iconPrivy,
209209
},
210210
template: `
211-
<p-accordion-item
211+
<p-accordion-item
212212
title="custom icon"
213213
:icon="icon"
214214
iconClass="custom-icon-class">

0 commit comments

Comments
 (0)