Skip to content

Commit

Permalink
refactor: change kunkun-drag-region to start with data
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed Oct 29, 2024
1 parent 6e04d83 commit c55d130
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 11 deletions.
7 changes: 7 additions & 0 deletions apps/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @kksh/cli

## 0.0.22

### Patch Changes

- Updated dependencies
- @kksh/api@0.0.23

## 0.0.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kksh/cli",
"module": "dist/cli.js",
"version": "0.0.21",
"version": "0.0.22",
"type": "module",
"bin": {
"@kksh/cli": "./dist/cli.js",
Expand Down
7 changes: 7 additions & 0 deletions apps/create-kunkun/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# create-kunkun

## 0.1.30

### Patch Changes

- Updated dependencies
- @kksh/api@0.0.23

## 0.1.29

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/create-kunkun/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-kunkun",
"type": "module",
"version": "0.1.29",
"version": "0.1.30",
"bin": {
"create-kunkun": "dist/index.mjs"
},
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/pages/add-dev-ext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function onBack() {
</script>
<template>
<main class="container h-screen w-screen pt-10">
<div class="absolute left-0 top-0 h-10 w-screen" data-tauri-drag-region />
<Button variant="outline" size="icon" class="absolute left-2 top-2 z-50" @click="onBack">
<ArrowLeftIcon />
</Button>
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/pages/set-dev-ext-path.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function onBack() {
</script>
<template>
<main class="container h-screen w-screen pt-10">
<div class="absolute left-0 top-0 h-10 w-screen" data-tauri-drag-region />
<Button variant="outline" size="icon" class="absolute left-2 top-2 z-50" @click="onBack">
<ArrowLeftIcon />
</Button>
Expand Down
18 changes: 11 additions & 7 deletions apps/desktop/stores/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,18 @@ export const useExtensionStore = defineStore("kk-extensions", () => {
})
}
const $listItems = computed(() => {
return manifests.value
.map((manifest) =>
manifestToCmdItems(
manifest,
extPath.value ? isExtPathInDev(extPath.value, manifest.extPath) : false
return (
manifests.value
.map((manifest) =>
manifestToCmdItems(
manifest,
extPath.value ? isExtPathInDev(extPath.value, manifest.extPath) : false
)
)
)
.flat()
.flat()
// isDev goes first
.sort((a, b) => (a.flags.isDev ? -1 : 1) - (b.flags.isDev ? -1 : 1))
)
})
const $filteredListItems = computed<TListItem[]>(() => {
return appStateStore.searchTerm.length === 0
Expand Down
6 changes: 6 additions & 0 deletions packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @kksh/api

## 0.0.23

### Patch Changes

- refactor: change kunkun-drag-region to start with data

## 0.0.22

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kksh/api",
"version": "0.0.22",
"version": "0.0.23",
"type": "module",
"exports": {
".": "./src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/ui/api/iframe-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Remote } from "@huakunshen/comlink"
import type { IOs } from "tauri-api-adapter/client"
import { type IUiIframe } from "../client"

export const KK_DRAG_REGION_ATTR = "kunkun-drag-region"
export const KK_DRAG_REGION_ATTR = "data-kunkun-drag-region"

export function constructIframeUiAPI(api: {
iframeUi: Remote<IUiIframe>
Expand Down

0 comments on commit c55d130

Please sign in to comment.