Skip to content

Commit

Permalink
fix: quarkui change to quarkd
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Mar 16, 2023
1 parent 9dd0d3b commit d32769f
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Execute the yarn run link command in git bash
│   ├── quark-react
│   ├── quark-reactify
│   ├── quark-icons
│   ├── quark-vscode-extension
│   ├── vscode-extension
│   ├── quark-rollup-plugin-postcss
│   └── quark-rollup-plugin-css-variable
├── scripts 脚本
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Windows 电脑运行 yarn run link 时乱码?
│   ├── quark-react
│   ├── quark-reactify
│   ├── quark-icons
│   ├── quark-vscode-extension
│   ├── vscode-extension
│   ├── quark-rollup-plugin-postcss
│   └── quark-rollup-plugin-css-variable
├── scripts 脚本
Expand Down
8 changes: 4 additions & 4 deletions example/scripts/pushmd2Local.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const removeFile = async (url) => {
const copy = async () => {
let configPath = `src/config.json`;
let configPkgPath = `package.json`;
let quarkuiDocsConfigPath = `${targetBaseUrl}/config.json`;
let quarkdDocsConfigPath = `${targetBaseUrl}/config.json`;

// 判断 site_docs 文件是否存在根路径中
const existsRoot = await fse.pathExists(targetBaseUrl);
Expand Down Expand Up @@ -73,14 +73,14 @@ const copy = async () => {
nav: [],
docs: [],
};
fse.outputJSON(quarkuiDocsConfigPath, obj, () => {
const docsConfig = fse.readJson(quarkuiDocsConfigPath);
fse.outputJSON(quarkdDocsConfigPath, obj, () => {
const docsConfig = fse.readJson(quarkdDocsConfigPath);
docsConfig.version = fromPkgConfig.version;
docsConfig.nav = fromConfig.nav;
docsConfig.docs = fromConfig.docs;
docsConfig.demoUrl = "/#";
fse
.writeJson(quarkuiDocsConfigPath, docsConfig, {
.writeJson(quarkdDocsConfigPath, docsConfig, {
spaces: 2,
})
.then(() => {
Expand Down
2 changes: 1 addition & 1 deletion example/src/sites/mobile-vue/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if (isMobile && import.meta.env.DEV) {
export default defineComponent({
name: "app",
setup() {
const title = ref("QuarkUI");
const title = ref("QuarkD");
// 获取当前路由
const route = useRoute();
const router = useRouter();
Expand Down
6 changes: 3 additions & 3 deletions example/src/sites/mobile-vue/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ app.mount("#app");
app.config.errorHandler = (err: any, vm, info) => {
// 处理错误
// `info` 是 Vue 特定的错误信息,比如错误所在的生命周期钩子
// console.log(err, 'quarkui.config.errorHandler err------>')
// console.log(vm, 'quarkui.config.errorHandler vm------>')
// console.log(info, 'quarkui.config.errorHandler info------>')
// console.log(err, 'quarkd.config.errorHandler err------>')
// console.log(vm, 'quarkd.config.errorHandler vm------>')
// console.log(info, 'quarkd.config.errorHandler info------>')
};
2 changes: 1 addition & 1 deletion packages/quark/src/locale/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### quarkui 语言包
### Quark design 语言包

目前支持的语言:

Expand Down
4 changes: 2 additions & 2 deletions packages/vscode-extension/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# quarkui-vscode-extension README
# quarkd-vscode-extension README

This is the README for your extension "quarkui-vscode-extension". After writing up a brief description, we recommend including the following sections.
This is the README for your extension "quarkd-vscode-extension". After writing up a brief description, we recommend including the following sections.

## Features

Expand Down
8 changes: 4 additions & 4 deletions packages/vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "quarkui-vscode-extension",
"displayName": "quarkui-vscode-extension",
"description": "quarkui extension for vscode",
"name": "quarkd-vscode-extension",
"displayName": "quarkd-vscode-extension",
"description": "quark design extension for vscode",
"private": true,
"version": "1.0.0",
"engines": {
Expand All @@ -23,7 +23,7 @@
"TODObuild": "webpack --mode production --devtool hidden-source-map",
"package": "yarn gen && yarn build && vsce package",
"publish": "vsce publish",
"unpublish": "vsce unpublish quarkui.quarkui-vscode-extension",
"unpublish": "vsce unpublish quarkd.quarkd-vscode-extension",
"vscode:prepublish": "yarn run package",
"watch": "webpack --watch",
"gen": "node ./scripts/createComponentMap.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-extension/scripts/createComponentMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require("fs");
// eslint-disable-next-line @typescript-eslint/naming-convention
const MarkdownIt = require("markdown-it")();

const basePath = path.resolve(__dirname, "./../../AppQuarkui/src/packages");
const basePath = path.resolve(__dirname, "./../../AppQuarkd/src/packages");
const componentDirs = fs.readdirSync(basePath, "utf8");
const TYPE_IDENTIFY_OPEN = "tbody_open";
const TYPE_IDENTIFY_CLOSE = "tbody_close";
Expand Down
10 changes: 5 additions & 5 deletions packages/vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const provideHover = (
const { site } = componentMap[item];

return new vscode.MarkdownString(
`[QuarkUI -> $(references) 请查看 ${bigCamelize(
`[QuarkDesign -> $(references) 请查看 ${bigCamelize(
item
)} 组件官方文档](${DOC}${site})\n`,
true
Expand Down Expand Up @@ -65,8 +65,8 @@ const resolveCompletionItem = (item: vscode.CompletionItem) => {
item.insertText = `<${item.label} ${propsText}>${tagSuffix}`;

item.command = {
title: "quarkui-move-cursor",
command: "quarkui-move-cursor",
title: "quarkd-move-cursor",
command: "quarkd-move-cursor",
arguments: [-tagSuffix.length - 2],
};
return item;
Expand All @@ -82,8 +82,8 @@ const moveCursor = (characterDelta: number) => {
};

export function activate(context: vscode.ExtensionContext) {
// 注册 quarkui-move-cursor 命令
vscode.commands.registerCommand("quarkui-move-cursor", moveCursor);
// 注册 quarkd-move-cursor 命令
vscode.commands.registerCommand("quarkd-move-cursor", moveCursor);

// 给插件订阅命令
context.subscriptions.push(
Expand Down
8 changes: 4 additions & 4 deletions scripts/copydocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const copy = async () => {
const quarkPath = path.resolve(__dirname, "../packages/quark");
let configPath = path.resolve(__dirname, "../example/src/config.json");
let configPkgPath = path.resolve(__dirname, `${quarkPath}/package.json`);
let quarkuiDocsConfigPath = `${targetBaseUrl}/config.json`;
let quarkdDocsConfigPath = `${targetBaseUrl}/config.json`;
// let changelogPath = `${changeLogUrl}/CHANGELOG.md`;

// 判断 site_docs 文件是否存在根路径中
Expand Down Expand Up @@ -96,14 +96,14 @@ const copy = async () => {
nav: [],
docs: [],
};
fse.outputJSON(quarkuiDocsConfigPath, obj, () => {
const docsConfig = fse.readJson(quarkuiDocsConfigPath);
fse.outputJSON(quarkdDocsConfigPath, obj, () => {
const docsConfig = fse.readJson(quarkdDocsConfigPath);
docsConfig.version = fromPkgConfig.version;
docsConfig.nav = fromConfig.nav;
docsConfig.docs = fromConfig.docs;
docsConfig.demoUrl = "https://quark-design.hellobike.com/demo/demo.html#";
fse
.writeJson(quarkuiDocsConfigPath, docsConfig, {
.writeJson(quarkdDocsConfigPath, docsConfig, {
spaces: 2,
})
.then(() => {
Expand Down

0 comments on commit d32769f

Please sign in to comment.