📦 Optimized packaging
This commit is contained in:
@@ -43,7 +43,7 @@ export const {
|
||||
stripTrailingHardline,
|
||||
} = doc.utils;
|
||||
|
||||
// Fallback implementations for removed utils in prettier 3
|
||||
// Fallback implementations for removed common in prettier 3
|
||||
export const isConcat = (doc: any): boolean => Array.isArray(doc);
|
||||
export const getDocParts = (doc: any): any[] => Array.isArray(doc) ? doc : [doc];
|
||||
export const propagateBreaks = (doc: any): any => doc;
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LanguageType } from '@/../bindings/voidraft/internal/models/models';
|
||||
import { LanguageType } from '../../../bindings/voidraft/internal/models/models';
|
||||
import type { SupportedLocaleType } from '@/stores/configStore';
|
||||
|
||||
/**
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
AuthMethod
|
||||
} from '@/../bindings/voidraft/internal/models/models';
|
||||
import {useI18n} from 'vue-i18n';
|
||||
import {ConfigUtils} from '@/utils/configUtils';
|
||||
import {ConfigUtils} from '@/common/utils/configUtils';
|
||||
import * as runtime from '@wailsio/runtime';
|
||||
// 国际化相关导入
|
||||
export type SupportedLocaleType = 'zh-CN' | 'en-US';
|
||||
|
||||
@@ -36,13 +36,14 @@ import htmlPrettierPlugin from "prettier/plugins/html"
|
||||
import cssPrettierPlugin from "prettier/plugins/postcss"
|
||||
import markdownPrettierPlugin from "prettier/plugins/markdown"
|
||||
import yamlPrettierPlugin from "prettier/plugins/yaml"
|
||||
import goPrettierPlugin from "@/utils/prettier/plugins/go/go"
|
||||
import sqlPrettierPlugin from "@/utils/prettier/plugins/sql/sql"
|
||||
import phpPrettierPlugin from "@/utils/prettier/plugins/php"
|
||||
import javaPrettierPlugin from "@/utils/prettier/plugins/java"
|
||||
import goPrettierPlugin from "@/common/prettier/plugins/go/go"
|
||||
import sqlPrettierPlugin from "@/common/prettier/plugins/sql/sql"
|
||||
import phpPrettierPlugin from "@/common/prettier/plugins/php"
|
||||
import javaPrettierPlugin from "@/common/prettier/plugins/java"
|
||||
import xmlPrettierPlugin from "@prettier/plugin-xml"
|
||||
import * as rustPrettierPlugin from "@/utils/prettier/plugins/rust";
|
||||
import * as shellPrettierPlugin from "@/utils/prettier/plugins/shell";
|
||||
import * as rustPrettierPlugin from "@/common/prettier/plugins/rust";
|
||||
import * as shellPrettierPlugin from "@/common/prettier/plugins/shell";
|
||||
import tomlPrettierPlugin from "prettier-plugin-toml";
|
||||
import * as prettierPluginEstree from "prettier/plugins/estree";
|
||||
|
||||
/**
|
||||
@@ -113,7 +114,10 @@ export const LANGUAGES: LanguageInfo[] = [
|
||||
parser: "yaml",
|
||||
plugins: [yamlPrettierPlugin]
|
||||
}),
|
||||
new LanguageInfo("toml", "TOML", StreamLanguage.define(toml).parser),
|
||||
new LanguageInfo("toml", "TOML", StreamLanguage.define(toml).parser,{
|
||||
parser: "toml",
|
||||
plugins: [tomlPrettierPlugin]
|
||||
}),
|
||||
new LanguageInfo("go", "Go", StreamLanguage.define(go).parser, {
|
||||
parser: "go",
|
||||
plugins: [goPrettierPlugin]
|
||||
|
||||
Reference in New Issue
Block a user