Skip to content

Commit

Permalink
refa: refactor workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 22, 2023
1 parent 83fb2b2 commit 17a038f
Show file tree
Hide file tree
Showing 288 changed files with 569 additions and 554 deletions.
22 changes: 0 additions & 22 deletions client/market/client/icons/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions client/market/client/index.ts

This file was deleted.

218 changes: 0 additions & 218 deletions client/market/client/utils.ts

This file was deleted.

32 changes: 0 additions & 32 deletions client/market/package.json

This file was deleted.

Empty file removed client/market/src/index.ts
Empty file.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"private": true,
"workspaces": [
"client/*",
"packages/*"
"packages/*",
"plugins/*"
],
"packageManager": "yarn@1.22.19",
"license": "MIT",
Expand All @@ -16,8 +16,8 @@
"dep": "yakumo upgrade",
"pub": "yakumo publish",
"lint": "eslint packages --ext=ts --cache",
"dev": "node -r esbuild-register client/online/scripts/dev",
"serve": "node -r esbuild-register client/online/scripts/serve",
"dev": "node -r esbuild-register packages/online/scripts/dev",
"serve": "node -r esbuild-register packages/online/scripts/serve",
"test": "yakumo mocha -r esbuild-register -r yml-register",
"test:text": "shx rm -rf coverage && c8 -r text yarn test",
"test:json": "shx rm -rf coverage && c8 -r json yarn test",
Expand All @@ -43,12 +43,12 @@
"eslint": "^8.36.0",
"eslint-plugin-mocha": "^10.1.0",
"jest-mock": "^28.1.3",
"koishi": "^4.12.5",
"koishi": "^4.12.6",
"mocha": "^9.2.2",
"rollup-plugin-node-polyfills": "^0.2.1",
"shx": "^0.3.4",
"typescript": "^4.9.5",
"yakumo": "^0.3.10",
"yakumo": "^0.3.12",
"yakumo-esbuild": "^0.3.22",
"yakumo-esbuild-yaml": "^0.3.1",
"yakumo-mocha": "^0.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
"dependencies": {
"@satorijs/components": "^0.5.7",
"@satorijs/element": "^2.3.6",
"@satorijs/element": "^2.4.0",
"@vitejs/plugin-vue": "^4.1.0",
"@vueuse/core": "^9.13.0",
"cac": "^6.7.14",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
import { computed } from 'vue'
import { AnalyzedPackage } from '@koishijs/registry'
import { MarketConfig, badges, getUsers, resolveCategory, validate } from '@koishijs/ui-market'
import { MarketConfig, badges, getUsers, resolveCategory, validate } from '@koishijs/market'
import { timeAgo } from '../utils'
import MarketIcon from '../icons'
import * as md5 from 'spark-md5'
Expand Down
File renamed without changes.
44 changes: 19 additions & 25 deletions packages/market/client/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
import { icons } from '@koishijs/client'
import { Component, defineComponent, h } from 'vue'

import NavDeps from './activity/deps.vue'
import NavMarket from './activity/market.vue'
import NavPlugin from './activity/plugin.vue'
import misc from './misc'
import outline from './outline'
import solid from './solid'

import Refresh from './market/refresh.vue'
const registry: Record<string, Component> = {
...misc,
...outline,
...solid,
}

import AddGroup from './settings/add-group.vue'
import AddPlugin from './settings/add-plugin.vue'
import TrashCan from './settings/trash-can.vue'
import Check from './settings/check.vue'
import Play from './settings/play.vue'
import Stop from './settings/stop.vue'
import Save from './settings/save.vue'

icons.register('activity:deps', NavDeps)
icons.register('activity:market', NavMarket)
icons.register('activity:plugin', NavPlugin)

icons.register('refresh', Refresh)
icons.register('add-plugin', AddPlugin)
icons.register('add-group', AddGroup)
icons.register('trash-can', TrashCan)
icons.register('check', Check)
icons.register('play', Play)
icons.register('stop', Stop)
icons.register('save', Save)
export default defineComponent({
props: {
name: String,
},
render(props) {
return props.name ? h(registry[props.name], {
class: 'market-icon',
}) : []
},
})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 17a038f

Please sign in to comment.