Skip to content

Commit

Permalink
!
Browse files Browse the repository at this point in the history
  • Loading branch information
Keywos committed Mar 18, 2024
1 parent fb8db3f commit 0271d3b
Show file tree
Hide file tree
Showing 22 changed files with 5,242 additions and 88 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.177",
"version": "2.14.178",
"private": true,
"scripts": {
"dev": "vite --host",
Expand All @@ -11,24 +11,25 @@
"dependencies": {
"@codemirror/autocomplete": "^6.12.0",
"@codemirror/buildhelper": "^1.0.1",
"@codemirror/commands": "^6.3.3",
"@codemirror/lang-javascript": "github:keywos/codemirror-lang-javascript",
"@codemirror/commands": "^6.3.3",
"@codemirror/language": "^6.10.1",
"@codemirror/search": "github:keywos/codemirror-search",
"@codemirror/state": "^6.4.0",
"@codemirror/view": "^6.23.1",
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/vue-fontawesome": "^3.0.1",
"@lezer/common": "^1.2.1",
"@lezer/highlight": "^1.2.0",
"@lezer/javascript": "^1.4.13",
"@nutui/nutui": "^3.3.8",
"@replit/codemirror-indentation-markers": "^6.5.0",
"@uiw/codemirror-extensions-hyper-link": "^4.21.21",
"@vueuse/core": "^8.9.2",
"@vueuse/integrations": "^8.9.2",
"axios": "^0.27.2",
"codemirror": "^6.0.1",
"crelt": "^1.0.6",
"dayjs": "^1.11.3",
"js-beautify": "^1.15.1",
"js-yaml": "^4.1.0",
Expand Down
24 changes: 10 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/views/editCode/cmView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<script setup>
import { darkCode } from "./dark.js";
import { lightCode } from "./light.js";
import { javascript } from "@codemirror/lang-javascript";
import { javascript } from "@/views/editCode/lang-js";
import { ref, onMounted, watch, watchEffect, computed } from "vue";
Expand All @@ -36,7 +36,7 @@ import {
openSearchPanel,
gotoLine,
closeSearchPanel,
} from "@codemirror/search";
} from "@/views/editCode/search";
import {
lineNumbers,
Expand Down
16 changes: 16 additions & 0 deletions src/views/editCode/lang-js/.github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Trigger CI
on: push

jobs:
build:
name: Dispatch to main repo
runs-on: ubuntu-latest
steps:
- name: Emit repository_dispatch
uses: mvasigh/dispatch-action@main
with:
# You should create a personal access token and store it in your repository
token: ${{ secrets.DISPATCH_AUTH }}
repo: dev
owner: codemirror
event_type: push
178 changes: 178 additions & 0 deletions src/views/editCode/lang-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
## 6.2.1 (2023-08-28)

### Bug fixes

`autoCloseTags` now generates two separate transactions, so that the completion can be undone separately.

## 6.2.0 (2023-08-26)

### New features

Export a `typescriptSnippets` array and include TypeScript keyword completions in the default support extension when in TypeScript mode.

## 6.1.9 (2023-06-02)

### Bug fixes

Make sure `scopeCompletionSource` doesn't try to complete property names that aren't simple identifier (such as numeric indices).

## 6.1.8 (2023-05-13)

### Bug fixes

Stop completing keywords after `.` tokens.

## 6.1.7 (2023-04-19)

### Bug fixes

Fix overeager JSX tag closing inside attribute values and in self-closing tags.

## 6.1.6 (2023-04-13)

### Bug fixes

Fix a bug that allowed `autoCloseTags` to close JSX tags in JavaScript context.

## 6.1.5 (2023-04-04)

### Bug fixes

Make TypeScript object type syntax foldable.

## 6.1.4 (2023-02-13)

### Bug fixes

Make sure code in JSX context can be commented correctly.

## 6.1.3 (2023-02-02)

### Bug fixes

Fix auto-closing of JSX fragments.

## 6.1.2 (2022-12-07)

### Bug fixes

Automatic tag closing in JSX now works for namespaced and member-expression tag names.

## 6.1.1 (2022-10-24)

### Bug fixes

Make `completionPath` handle `?.` syntax.

## 6.1.0 (2022-09-20)

### New features

The `completionPath` helper can now be used to find the object path to complete at a given position.

`scopeCompletionSource` provides a completion source based on a scope object.

## 6.0.2 (2022-07-21)

### Bug fixes

Fix the `source` field in ESLint diagnostics to properly hold `"eslint"`.

Fix (non-)auto indentation in template strings and comments.

## 6.0.1 (2022-06-29)

### Bug fixes

Avoid completing variables/keywords in property or definition positions.

Fix a bug that broke local variable completion if JavaScript was parsed an overlay in an outer language.

## 6.0.0 (2022-06-08)

### Breaking changes

Update dependencies to 6.0.0

## 0.20.1 (2022-06-01)

### New features

`localCompletionSource` (included in the support extensions returned from `javascript`) now provides a way to complete locally-defined names.

## 0.20.0 (2022-04-20)

### New features

The new `autoCloseTags` extension (included by default in the `javascript` language extension when `jsx` is configured) finishes JSX closing tags when you type a `>` or `/` character.

## 0.19.7 (2022-01-28)

## 0.19.6 (2022-01-11)

### Bug fixes

Remove accidentally released unfinished changes.

## 0.19.5 (2022-01-11)

### Bug fixes

Add the `function` highlight modifier to variables used in tagged template expressions.

## 0.19.4 (2022-01-03)

### Bug fixes

Fix highlighting of TypeScript private/public/protected keywords.

## 0.19.3 (2021-11-12)

### Bug fixes

Add styling for private properties.

## 0.19.2 (2021-09-23)

### New features

Use more specific highlighting tags for JSX attribute names and values.

## 0.19.1 (2021-08-11)

### Bug fixes

Fix incorrect versions for @lezer dependencies.

## 0.19.0 (2021-08-11)

### Breaking changes

Update dependencies to 0.19.0

## 0.18.0 (2021-03-03)

### Bug fixes

Extend `indentOnInput` expression to cover closing JSX tags.

## 0.17.2 (2021-02-15)

### Bug fixes

Improve highlighting tag specificity of defined function and class names. Add indentation information for JSX constructs

Support smart indent for JSX syntax.

## 0.17.1 (2021-01-06)

### New features

The package now also exports a CommonJS module.

## 0.17.0 (2020-12-29)

### Breaking changes

First numbered release.

21 changes: 21 additions & 0 deletions src/views/editCode/lang-js/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (C) 2018-2021 by Marijn Haverbeke <[email protected]> and others

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit 0271d3b

Please sign in to comment.