-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from olets/next
v4 docs pt 2
- Loading branch information
Showing
100 changed files
with
9,413 additions
and
9,607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
# Typesense | ||
# Used in indexing | ||
TYPESENSE_API_KEY=xyz | ||
TYPESENSE_HOST=host.docker.internal | ||
TYPESENSE_PORT=8108 | ||
TYPESENSE_PROTOCOL=http | ||
|
||
# Algolia admin API key. Used in indexing | ||
API_KEY=REPLACEME | ||
# Algolia application ID. Used in indexing and on front end (for front end, configure in Vercel environment variables) | ||
APPLICATION_ID=REPLACEME | ||
# Algolia index name. Used in indexing and on front end (for front end, configure in Vercel environment variables) | ||
INDEX_NAME=REPLACEME | ||
# Algolia search-only API key. Used on front end (for front end, configure in Vercel environment variables) | ||
SEARCH_KEY=REPLACEME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// eslint-disable-next-line no-undef | ||
module.exports = { | ||
extends: ["eslint:recommended", "plugin:vue/vue3-recommended"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
node_modules/ | ||
yarn-error.log | ||
node_modules | ||
.temp | ||
.cache | ||
.eslintcache | ||
dist | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.temp | ||
.cache | ||
.eslintcache | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
nodejs 12.16.3 | ||
nodejs 18.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* <type>(<scope>): <subject> // this whole thing is <header> | ||
* | ||
* <body> | ||
* | ||
* <footer> | ||
*/ | ||
|
||
// eslint-disable-next-line no-undef | ||
module.exports = { | ||
extends: ["@commitlint/config-conventional"], | ||
rules: { | ||
"body-max-line-length": [1, "always", 100], // warn if body length exceeds 100 characters (default is error) | ||
"header-max-length": [1, "always", 72], // warn if message length exceeds 72 characters (default is error over 100) | ||
"subject-case": [0, "always"], // support any case in message (default is error on lowercase) | ||
"subject-full-stop": [1, "never", "."], // support ending a message with `...` (default is error when ending in `.`) | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
import { defineClientConfig } from "@vuepress/client"; | ||
|
||
import { createPinia } from "pinia"; | ||
const pinia = createPinia(); | ||
|
||
import ComponentsListComponent from "./components/ComponentsListComponent.vue"; | ||
import ConfigComponent from "./components/ConfigComponent.vue"; | ||
import ContextConfigurationComponent from "./components/ContextConfigurationComponent.vue"; | ||
import InputComponent from "./components/InputComponent.vue"; | ||
import OptionsComponent from "./components/OptionsComponent.vue"; | ||
import OptionsConfigurationComponent from "./components/OptionsConfigurationComponent.vue"; | ||
import PromptSegmentComponent from "./components/prompt/PromptSegmentComponent.vue"; | ||
import ResetOptionsComponent from "./components/ResetOptionsComponent.vue"; | ||
|
||
import ActionComponent from "./components/ActionComponent.vue"; | ||
import AssumedUnchangedComponent from "./components/AssumedUnchangedComponent.vue"; | ||
import CharComponent from "./components/CharComponent.vue"; | ||
import ConflictedComponent from "./components/ConflictedComponent.vue"; | ||
import CwdComponent from "./components/CwdComponent.vue"; | ||
import DeletedComponent from "./components/DeletedComponent.vue"; | ||
import DeletedStagedComponent from "./components/DeletedStagedComponent.vue"; | ||
import DirtyComponent from "./components/DirtyComponent.vue"; | ||
import GitAheadComponent from "./components/GitAheadComponent.vue"; | ||
import GitBehindComponent from "./components/GitBehindComponent.vue"; | ||
import GitHeadComponent from "./components/GitHeadComponent.vue"; | ||
import GitPushAheadComponent from "./components/GitPushAheadComponent.vue"; | ||
import GitPushBehindComponent from "./components/GitPushBehindComponent.vue"; | ||
import GitPushComponent from "./components/GitPushComponent.vue"; | ||
import GitRefComponent from "./components/GitRefComponent.vue"; | ||
import GitRemoteComponent from "./components/GitRemoteComponent.vue"; | ||
import GitTagComponent from "./components/GitTagComponent.vue"; | ||
import ModifiedComponent from "./components/ModifiedComponent.vue"; | ||
import ModifiedStagedComponent from "./components/ModifiedStagedComponent.vue"; | ||
import NewComponent from "./components/NewComponent.vue"; | ||
import RepoRootComponent from "./components/RepoRootComponent.vue"; | ||
import RepoSubdirectoryComponent from "./components/RepoSubdirectoryComponent.vue"; | ||
import SkipWorktreeComponent from "./components/SkipWorktreeComponent.vue"; | ||
import StashesComponent from "./components/StashesComponent.vue"; | ||
import StatusComponent from "./components/StatusComponent.vue"; | ||
import StatusExtendedComponent from "./components/StatusExtendedComponent.vue"; | ||
import UntrackedComponent from "./components/UntrackedComponent.vue"; | ||
import UserhostComponent from "./components/UserhostComponent.vue"; | ||
|
||
export default defineClientConfig({ | ||
enhance({ app }) { | ||
app.use(pinia); | ||
|
||
app.component("ActionComponent", ActionComponent); | ||
app.component("AssumedUnchangedComponent", AssumedUnchangedComponent); | ||
app.component("CharComponent", CharComponent); | ||
app.component("ConfigComponent", ConfigComponent); | ||
app.component("ConflictedComponent", ConflictedComponent); | ||
app.component("ComponentsListComponent", ComponentsListComponent); | ||
app.component( | ||
"ContextConfigurationComponent", | ||
ContextConfigurationComponent | ||
); | ||
app.component("CwdComponent", CwdComponent); | ||
app.component("DeletedComponent", DeletedComponent); | ||
app.component("DeletedStagedComponent", DeletedStagedComponent); | ||
app.component("DirtyComponent", DirtyComponent); | ||
app.component("GitAheadComponent", GitAheadComponent); | ||
app.component("GitBehindComponent", GitBehindComponent); | ||
app.component("GitHeadComponent", GitHeadComponent); | ||
app.component("GitPushAheadComponent", GitPushAheadComponent); | ||
app.component("GitPushBehindComponent", GitPushBehindComponent); | ||
app.component("GitPushComponent", GitPushComponent); | ||
app.component("GitRefComponent", GitRefComponent); | ||
app.component("GitRemoteComponent", GitRemoteComponent); | ||
app.component("GitTagComponent", GitTagComponent); | ||
app.component("InputComponent", InputComponent); | ||
app.component("ModifiedComponent", ModifiedComponent); | ||
app.component("ModifiedStagedComponent", ModifiedStagedComponent); | ||
app.component("NewComponent", NewComponent); | ||
app.component("OptionsComponent", OptionsComponent); | ||
app.component( | ||
"OptionsConfigurationComponent", | ||
OptionsConfigurationComponent | ||
); | ||
app.component("PromptSegmentComponent", PromptSegmentComponent); | ||
app.component("RepoRootComponent", RepoRootComponent); | ||
app.component("RepoSubdirectoryComponent", RepoSubdirectoryComponent); | ||
app.component("ResetOptionsComponent", ResetOptionsComponent); | ||
app.component("SkipWorktreeComponent", SkipWorktreeComponent); | ||
app.component("StashesComponent", StashesComponent); | ||
app.component("StatusComponent", StatusComponent); | ||
app.component("StatusExtendedComponent", StatusExtendedComponent); | ||
app.component("UntrackedComponent", UntrackedComponent); | ||
app.component("UserhostComponent", UserhostComponent); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<script> | ||
import { useOptionsStore } from "../stores/options"; | ||
import { useContextStore } from "../stores/context"; | ||
import { getValue } from "../utils/value"; | ||
import PromptSegmentComponent from "./prompt/PromptSegmentComponent.vue"; | ||
export default { | ||
components: [PromptSegmentComponent], | ||
setup() { | ||
const store = { | ||
context: useContextStore(), | ||
options: useOptionsStore(), | ||
}; | ||
return { store }; | ||
}, | ||
methods: { | ||
useVerboseDefaults() { | ||
return getValue( | ||
this.store.options.data.GIT_PROMPT_KIT_VERBOSE_DEFAULT_SYMBOLS | ||
); | ||
}, | ||
getValue, | ||
}, | ||
}; | ||
</script> | ||
|
||
<template> | ||
<PromptSegmentComponent | ||
v-if=" | ||
getValue(store.context.data.directoryGitRepo) && | ||
getValue(store.context.data.gitStatusAction) | ||
" | ||
:key="useVerboseDefaults()" | ||
color-option="GIT_PROMPT_KIT_COLOR_ACTION" | ||
text="merge" | ||
/> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script> | ||
import { useOptionsStore } from "../stores/options"; | ||
import { useContextStore } from "../stores/context"; | ||
import { getValue } from "../utils/value"; | ||
import PromptSegmentComponent from "./prompt/PromptSegmentComponent.vue"; | ||
export default { | ||
components: [PromptSegmentComponent], | ||
setup() { | ||
const store = { | ||
context: useContextStore(), | ||
options: useOptionsStore(), | ||
}; | ||
return { store }; | ||
}, | ||
methods: { | ||
useVerboseDefaults() { | ||
return getValue( | ||
this.store.options.data.GIT_PROMPT_KIT_VERBOSE_DEFAULT_SYMBOLS | ||
); | ||
}, | ||
getValue, | ||
}, | ||
}; | ||
</script> | ||
|
||
<template> | ||
<PromptSegmentComponent | ||
v-if=" | ||
getValue(store.context.data.extendedGitStatusAssumeUnchanged) || | ||
!getValue(store.options.data.GIT_PROMPT_KIT_HIDE_INACTIVE_EXTENDED_STATUS) | ||
" | ||
:key="useVerboseDefaults()" | ||
:color-option=" | ||
getValue(store.context.data.extendedGitStatusAssumeUnchanged) | ||
? 'GIT_PROMPT_KIT_COLOR_ASSUME_UNCHANGED' | ||
: 'GIT_PROMPT_KIT_COLOR_INACTIVE' | ||
" | ||
:text="`${ | ||
getValue(store.context.data.extendedGitStatusAssumeUnchanged) | ||
? '2' + | ||
getValue(store.options.data.GIT_PROMPT_KIT_SYMBOL_ASSUME_UNCHANGED) | ||
: getValue( | ||
store.options.data.GIT_PROMPT_KIT_SYMBOL_ASSUME_UNCHANGED_INACTIVE, | ||
store.options.data.GIT_PROMPT_KIT_SYMBOL_ASSUME_UNCHANGED | ||
) || '' | ||
}`" | ||
/> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<script> | ||
import { useOptionsStore } from "../stores/options"; | ||
import { useContextStore } from "../stores/context"; | ||
import { getValue } from "../utils/value"; | ||
import PromptSegmentComponent from "./prompt/PromptSegmentComponent.vue"; | ||
export default { | ||
components: [PromptSegmentComponent], | ||
setup() { | ||
const store = { | ||
context: useContextStore(), | ||
options: useOptionsStore(), | ||
}; | ||
return { store }; | ||
}, | ||
methods: { | ||
getValue, | ||
}, | ||
}; | ||
</script> | ||
|
||
<template> | ||
<PromptSegmentComponent | ||
:color-option=" | ||
getValue(store.context.data.sessionFailed) | ||
? 'GIT_PROMPT_KIT_COLOR_FAILED' | ||
: 'GIT_PROMPT_KIT_COLOR_SUCCEEDED' | ||
" | ||
:text=" | ||
getValue(store.context.data.userRoot) | ||
? getValue(store.options.data.GIT_PROMPT_KIT_SYMBOL_CHAR_ROOT) | ||
: getValue(store.options.data.GIT_PROMPT_KIT_SYMBOL_CHAR_NORMAL) | ||
" | ||
/> | ||
</template> |
Oops, something went wrong.