Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
340 changes: 245 additions & 95 deletions pages/src/components/UninstallForm.tsx

Large diffs are not rendered by default.

55 changes: 28 additions & 27 deletions pages/src/const.ts
Original file line number Diff line number Diff line change
@@ -1,55 +1,56 @@
export enum OPEN_MODE {
POPUP = 'popup',
WINDOW = 'window',
TAB = 'tab',
PAGE_ACTION = 'pageAction',
POPUP = "popup",
WINDOW = "window",
TAB = "tab",
PAGE_ACTION = "pageAction",
}

export enum SPACE_ENCODING {
PLUS = 'plus',
PERCENT = 'percent',
PLUS = "plus",
PERCENT = "percent",
}

export enum SORT_ORDER {
searchUrl = 'searchUrl',
title = 'title',
download = 'download',
star = 'star',
addedAt = 'addedAt',
searchUrl = "searchUrl",
title = "title",
download = "download",
star = "star",
addedAt = "addedAt",
}

export enum PAGE_ACTION_OPEN_MODE {
NONE = 'none',
NONE = "none",
POPUP = OPEN_MODE.POPUP,
TAB = OPEN_MODE.TAB,
}

export enum PAGE_ACTION_EVENT {
click = 'click',
doubleClick = 'doubleClick',
tripleClick = 'tripleClick',
keyboard = 'keyboard',
scroll = 'scroll',
input = 'input',
click = "click",
doubleClick = "doubleClick",
tripleClick = "tripleClick",
keyboard = "keyboard",
scroll = "scroll",
input = "input",
}

export enum PAGE_ACTION_CONTROL {
start = 'start',
end = 'end',
start = "start",
end = "end",
}

export enum SelectorType {
css = 'css',
xpath = 'xpath',
css = "css",
xpath = "xpath",
}

export const PAGE_ACTION_MAX = 12 // 10 actions + 1 start + 1 end

const environment = process.env.NODE_ENV || 'development'
export const isDebug = environment === 'development'
const environment = process.env.NODE_ENV || "development"
export const isDebug = environment === "development"

export const HUB_URL = isDebug
? 'http://localhost:3000'
: 'https://ujiro99.github.io/selection-command'
? "http://localhost:3000"
: "https://ujiro99.github.io/selection-command"

export const UNINSTALL_OTHER_OPTION = '__other_option__' as const
export const OTHER_OPTION = "__other_option__" as const
export const UNINSTALL_OTHER_OPTION = "__other_option__" as const
13 changes: 12 additions & 1 deletion pages/src/features/locale/de.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SORT_ORDER, OPEN_MODE } from '@/const'
import { UNINSTALL_OTHER_OPTION } from '@/const'
import { OTHER_OPTION, UNINSTALL_OTHER_OPTION } from '@/const'

const lang = {
name: 'Deutsch',
Expand Down Expand Up @@ -154,6 +154,8 @@ const lang = {
'Vielen Dank für die bisherige Nutzung von Selection Command. Es tut uns leid, Sie gehen zu sehen, aber wir wären dankbar, wenn Sie die folgende Umfrage beantworten könnten, um uns bei der Verbesserung der Erweiterung zu helfen.',
reinstall:
'Wenn Sie es versehentlich deinstalliert haben, können Sie es über den folgenden Link neu installieren.',
wantedToUseTitle: 'Welche Funktionen wollten Sie nutzen? (Mehrfachauswahl möglich)',
wantedToUsePlaceholder: 'Bitte teilen Sie uns mit, was Sie erreichen wollten',
reasonTitle:
'Bitte teilen Sie uns den Grund für die Deinstallation mit. (Mehrfachauswahl möglich)',
otherReasonPlaceholder: 'Bitte geben Sie den Grund an',
Expand All @@ -169,6 +171,12 @@ const lang = {
},
error:
'Der Sendevorgang ist fehlgeschlagen. Bitte versuchen Sie es in Kürze erneut.',
wantedToUse: {
search_selected_text: 'Text-Suche',
ai_chatbot: 'KI-Chatbot (wie ChatGPT)',
link_preview: 'Link-Vorschau',
[OTHER_OPTION]: 'Sonstiges',
},
reasons: {
difficult_to_use: 'Ich wusste nicht, wie man es benutzt',
not_user_friendly: 'Nicht benutzerfreundlich',
Expand All @@ -178,6 +186,9 @@ const lang = {
found_better: 'Bessere Alternative gefunden',
no_longer_needed: 'Wird nicht mehr benötigt',
language_not_supported: 'Sprache wird nicht unterstützt',
search_engine_is_not_available: 'Gewünschte Suchmaschine nicht verfügbar',
i_dont_know_how_to_add_commands: 'Weiß nicht, wie man Befehle hinzufügt',
settings_are_complicated: 'Einstellungen sind zu kompliziert',
[UNINSTALL_OTHER_OPTION]: 'Sonstiges',
},
},
Expand Down
Loading