Skip to content

Commit 92a8263

Browse files
committed
chore: remove AI related prompts
1 parent 1aa47f7 commit 92a8263

File tree

3 files changed

+61
-65
lines changed

3 files changed

+61
-65
lines changed
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
export default `/* Getting Started: let AI generate SQL for you.
2-
Type "-- + your instruction" and press "ENTER", to start AI journey with sample data of github events.
3-
Review the SQL generated by AI, and accept it by press "Tab" or reject it by press "Esc". */
4-
use sample_data;
5-
/* Try typing this instruction and press "ENTER":
6-
-- Find the most popular repo from github events */
1+
// export default `/* Getting Started: let AI generate SQL for you.
2+
// Type "-- + your instruction" and press "ENTER", to start AI journey with sample data of github events.
3+
// Review the SQL generated by AI, and accept it by press "Tab" or reject it by press "Esc". */
4+
// use sample_data;
5+
// /* Try typing this instruction and press "ENTER":
6+
// -- Find the most popular repo from github events */
77

8-
/* To experience AI-generated SQL on your own dataset, please accept Privacy terms at first.
9-
PingCAP values your data privacy as top priority.*/
10-
/* DISCLAIMER:
11-
The AI model may occasionally generate inaccurate SQL statement due to limitations of AI model.
12-
You can edit the AI generated SQL statement as you like. */`
8+
// /* To experience AI-generated SQL on your own dataset, please accept Privacy terms at first.
9+
// PingCAP values your data privacy as top priority.*/
10+
// /* DISCLAIMER:
11+
// The AI model may occasionally generate inaccurate SQL statement due to limitations of AI model.
12+
// You can edit the AI generated SQL statement as you like. */`
1313

1414
// export const preTips = `/* Enter "USE {database};" to start exploring your data.`
1515
// export const affixTips = ` Type "-- your instruction" followed by the Enter key to try out AI-generated SQL queries.*/`
@@ -18,3 +18,5 @@ export const preTips = `/* Enter "USE {database};" to start exploring your data.
1818
export const affixTips = ``
1919

2020
export const newFileContent = `${preTips}\n${affixTips}\nUSE `
21+
22+
export default preTips

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiunimanager-ui",
3-
"version": "1.1.0-beta.3",
3+
"version": "1.1.0-beta.4",
44
"private": true,
55
"license": "Apache-2.0",
66
"scripts": {

types/macros.d.ts

Lines changed: 47 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,59 @@
11
declare module '@i18n-macro' {
2-
/** load i18n resources by glob pattern. */
3-
export function loadI18n(glob?: string): void
4-
/** load i18n resources by glob pattern. */
5-
export function loadI18nWithNS(ns: string, glob?: string): void
6-
import { UseTranslationResponse } from 'react-i18next'
7-
/** a wrapper of useTranslation(), with auto namespace management. */
8-
export function useI18n(): UseTranslationResponse<''>
9-
import { TFunction } from 'i18next'
10-
/** a wrapper of i18next.t(), with auto namespace management. */
11-
export function getI18n(): TFunction
12-
/** get the i18n namespace for the current file. */
13-
export function resolveNamespace(): string
2+
/** load i18n resources by glob pattern. */
3+
export function loadI18n(glob?: string): void
4+
/** load i18n resources by glob pattern. */
5+
export function loadI18nWithNS(ns: string, glob?: string): void
6+
import { UseTranslationResponse } from 'react-i18next'
7+
/** a wrapper of useTranslation(), with auto namespace management. */
8+
export function useI18n(): UseTranslationResponse<''>
9+
import { TFunction } from 'i18next'
10+
/** a wrapper of i18next.t(), with auto namespace management. */
11+
export function getI18n(): TFunction
12+
/** get the i18n namespace for the current file. */
13+
export function resolveNamespace(): string
1414
}
1515
declare module '@i18n-macro-helper' {
16-
import { TFunction } from 'i18next'
17-
export function onI18nInitialized(hook: () => void): void
18-
export function withNamespace(ns: string | string[]): TFunction
16+
17+
import { TFunction } from 'i18next'
18+
export function onI18nInitialized(hook: () => void): void;
19+
export function withNamespace(ns: string | string[]): TFunction;
20+
1921
}
2022
declare module '@assets-macro' {
21-
/** import all assets by glob pattern. */
22-
export function importAssets(glob: string): void
23+
/** import all assets by glob pattern. */
24+
export function importAssets(glob: string): void
2325
}
2426
declare module '@pages-macro' {
25-
import { ComponentType } from 'react'
26-
export interface IRoute<T> {
27-
id: string
28-
defaultName: string
29-
path: string
30-
exact: boolean
31-
sync: boolean
32-
component: ComponentType<any>
33-
meta: T
34-
children: IRoute<T>[]
35-
}
36-
/** get routes tree by the path of the root directory of pages and the prefix of target routes. */
37-
export function loadRoutes<T>(pagesPath: string, prefix?: string): IRoute<T>
3827

39-
export interface IMenuItem<T> {
40-
id: string
41-
defaultName: string
42-
path: string
43-
meta: T
44-
children: IMenuItem<T>[]
45-
}
46-
/** get menu tree by the path of the root directory of pages and the route prefix of these menus.
28+
import { ComponentType } from 'react'
29+
export interface IRoute<T> {
30+
id: string
31+
defaultName: string
32+
path: string
33+
exact: boolean
34+
sync: boolean
35+
component: ComponentType<any>
36+
meta: T
37+
children: IRoute<T>[]
38+
}
39+
/** get routes tree by the path of the root directory of pages and the prefix of target routes. */
40+
export function loadRoutes<T>(pagesPath: string, prefix?: string): IRoute<T>
41+
42+
export interface IMenuItem<T> {
43+
id: string
44+
defaultName: string
45+
path: string
46+
meta: T
47+
children: IMenuItem<T>[]
48+
}
49+
/** get menu tree by the path of the root directory of pages and the route prefix of these menus.
4750
if prefix is left unset, the route of the current file will be used as the route prefix of the menus. */
48-
export function loadMenus<T>(
49-
pagesPath: string,
50-
prefix?: string
51-
): IMenuItem<T>[]
52-
/** get the route path by relative path.
51+
export function loadMenus<T>(pagesPath: string, prefix?: string): IMenuItem<T>[]
52+
/** get the route path by relative path.
5353
if relativePath is left unset, returns the route path of current file. */
54-
export function resolveRoute(
55-
relativePath?: string,
56-
...params: string[]
57-
): string
54+
export function resolveRoute(relativePath?: string, ...params: string[]): string
5855
}
5956
declare module '@components-macro' {
60-
import { ReactElement, ComponentType } from 'react'
61-
export function wrap(
62-
target: ReactElement,
63-
...wrappers: ComponentType[]
64-
): ReactElement
65-
}
57+
import { ReactElement, ComponentType } from 'react'
58+
export function wrap(target: ReactElement, ...wrappers: ComponentType[]): ReactElement
59+
}

0 commit comments

Comments
 (0)