Skip to content

Release/2.0.0 #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 72 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
be192c0
Bump ini from 1.3.5 to 1.3.7
dependabot[bot] Dec 11, 2020
d386980
Bump elliptic from 6.5.0 to 6.5.4
dependabot[bot] Mar 9, 2021
aa4892b
Bump y18n from 4.0.0 to 4.0.1
dependabot[bot] Mar 30, 2021
99e192e
Bump ssri from 6.0.1 to 6.0.2
dependabot[bot] Apr 30, 2021
98246ea
Bump lodash from 4.17.15 to 4.17.21
dependabot[bot] May 10, 2021
45762db
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 11, 2021
02700fc
Bump node-fetch from 2.6.0 to 2.6.7
dependabot[bot] Jun 25, 2022
7c590f2
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Dec 4, 2022
890ad87
Bump axios from 0.19.2 to 0.21.2
dependabot[bot] Dec 29, 2022
069ad54
Bump postcss from 7.0.17 to 7.0.39
dependabot[bot] Dec 29, 2022
6ad0c96
Bump tar from 4.4.8 to 4.4.19
dependabot[bot] Dec 29, 2022
684929f
Merge pull request #43 from hackmdio/dependabot/npm_and_yarn/ini-1.3.7
Yukaii Dec 29, 2022
9c02b9b
Merge pull request #49 from hackmdio/dependabot/npm_and_yarn/elliptic…
Yukaii Dec 29, 2022
b920238
Merge pull request #51 from hackmdio/dependabot/npm_and_yarn/y18n-4.0.1
Yukaii Dec 29, 2022
8d08dbb
Merge pull request #53 from hackmdio/dependabot/npm_and_yarn/ssri-6.0.2
Yukaii Dec 29, 2022
f157cdf
Merge pull request #55 from hackmdio/dependabot/npm_and_yarn/lodash-4…
Yukaii Dec 29, 2022
6e0f821
Merge pull request #69 from hackmdio/dependabot/npm_and_yarn/node-fet…
Yukaii Dec 29, 2022
d89856e
Merge pull request #76 from hackmdio/dependabot/npm_and_yarn/decode-u…
Yukaii Dec 29, 2022
64fd3ff
Merge pull request #78 from hackmdio/dependabot/npm_and_yarn/postcss-…
Yukaii Dec 29, 2022
fc39fca
Bump ajv from 6.10.2 to 6.12.6
dependabot[bot] Dec 29, 2022
4a00b79
Merge pull request #66 from hackmdio/dependabot/npm_and_yarn/ajv-6.12.6
Yukaii Dec 29, 2022
6424ade
Merge pull request #79 from hackmdio/dependabot/npm_and_yarn/tar-4.4.19
Yukaii Dec 29, 2022
118afde
Bump loader-utils and webpack-cli
dependabot[bot] Dec 29, 2022
5074566
Merge pull request #60 from hackmdio/dependabot/npm_and_yarn/path-par…
Yukaii Dec 29, 2022
c98cb3a
Bump minimist, mocha and mkdirp
dependabot[bot] Dec 29, 2022
a032520
Merge pull request #72 from hackmdio/dependabot/npm_and_yarn/loader-u…
Yukaii Dec 29, 2022
ffd94b1
Merge pull request #82 from hackmdio/dependabot/npm_and_yarn/minimist…
Yukaii Dec 29, 2022
bdcdf7c
Merge pull request #77 from hackmdio/dependabot/npm_and_yarn/axios-0.…
Yukaii Dec 29, 2022
d176a4a
Bump underscore from 1.4.4 to 1.13.6
dependabot[bot] Dec 29, 2022
f0227f3
Merge pull request #81 from hackmdio/dependabot/npm_and_yarn/undersco…
Yukaii Dec 29, 2022
fc5fddf
chore: fix package lock
Yukaii Dec 29, 2022
5c9f5d6
fix: reset prism added text-shadow for code/pre tag text
Yukaii Dec 29, 2022
4b446b3
fix: register vscode.markdown.updateContent event for re-rendering
Yukaii Dec 29, 2022
d6dd377
feat: upgrade webpack deps
Yukaii Dec 29, 2022
7ed4597
style: eslint and prettier
Yukaii Dec 29, 2022
64dc0a7
Merge pull request #86 from hackmdio/chore/upgrade-deps
Yukaii Dec 29, 2022
4f2fea8
chore: upgrade hackmd api client and vscode typing
Yukaii Dec 29, 2022
df55734
feat: react vscode tree element
Yukaii Dec 29, 2022
8069f69
feat: implement tree for my notes and history
Yukaii Dec 29, 2022
9ed9490
chore: yeah we drop tslint
Yukaii Dec 29, 2022
451285b
fix: organize context as props
Yukaii Dec 29, 2022
f5aa4fb
fix: patch typing
Yukaii Dec 29, 2022
e15f649
feat: cache and executation control
Yukaii Dec 29, 2022
a61f5cb
fix: just use swr
Yukaii Dec 30, 2022
b8ba179
feat: add select team command
Yukaii Dec 30, 2022
c71ea19
feat: add tree item icon
Yukaii Dec 30, 2022
19c38f8
feat: list refreshing and error handling
Yukaii Jan 3, 2023
d1bb89a
feat: prepare web extension
Yukaii Jan 3, 2023
86a499e
fix: drop web target for now
Yukaii Jan 3, 2023
6077f2d
fix: cleanup
Yukaii Jan 3, 2023
65d9b9e
fix: adjust error display
Yukaii Jan 3, 2023
a7e1af6
Merge pull request #87 from hackmdio/feature/new-api-client
Yukaii Jan 3, 2023
20d5f0c
Bump flat and mocha
dependabot[bot] Jan 3, 2023
b520228
Bump highlight.js from 9.15.8 to 10.4.1
dependabot[bot] Jan 3, 2023
2e9b9c9
Bump prismjs from 1.17.1 to 1.27.0
dependabot[bot] Jan 3, 2023
d05bbec
Bump terser from 4.1.2 to 4.8.1
dependabot[bot] Jan 3, 2023
f08e5e5
Merge pull request #88 from hackmdio/dependabot/npm_and_yarn/flat-and…
Yukaii Jan 4, 2023
a2dc5b0
chore(deps): bump json5 from 1.0.1 to 1.0.2
dependabot[bot] Jan 4, 2023
983594d
Merge pull request #71 from hackmdio/dependabot/npm_and_yarn/terser-4…
Yukaii Jan 4, 2023
410c351
Merge pull request #67 from hackmdio/dependabot/npm_and_yarn/prismjs-…
Yukaii Jan 4, 2023
e6c4847
chore(deps): bump minimatch from 3.0.4 to 3.1.2
dependabot[bot] Jan 4, 2023
8d6f8bb
Merge pull request #90 from hackmdio/dependabot/npm_and_yarn/json5-1.0.2
Yukaii Jan 4, 2023
ee74c82
Merge pull request #91 from hackmdio/dependabot/npm_and_yarn/minimatc…
Yukaii Jan 4, 2023
85cc48c
Bump @braintree/sanitize-url and mermaid
dependabot[bot] Jan 4, 2023
1a05b47
Merge pull request #85 from hackmdio/dependabot/npm_and_yarn/braintre…
Yukaii Jan 4, 2023
e5c4e87
Merge pull request #40 from hackmdio/dependabot/npm_and_yarn/highligh…
Yukaii Jan 4, 2023
ae8585e
fix: mermaid typing
Yukaii Jan 4, 2023
fd07f77
feat: udpate highlight.js deps
Yukaii Jan 4, 2023
9d7d724
fix: drop unused deps
Yukaii Jan 3, 2023
5e8ffd3
docs: update changelog
Yukaii Jan 4, 2023
9c820ee
fix: bundle size
Yukaii Jan 4, 2023
e40d285
docs: update changelog
Yukaii Jan 4, 2023
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
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-react", "@babel/preset-typescript"]
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
49 changes: 49 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module.exports = {
env: {
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/react-in-jsx-scope': 'off',
'import/order': [
'error',
{
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'@typescript-eslint/no-var-requires': 'warn',
'import/default': 'warn',
},
settings: {
react: {
version: 'detect',
},
'import/resolver': {
typescript: true,
node: true,
},
'import/core-modules': ['vscode'],
},
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_modules
*.vsix
dist
**/.DS_Store

.vscode-test-web
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore artifacts:
dist
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": true
}
8 changes: 3 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"ms-vscode.vscode-typescript-tslint-plugin"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": []
}
70 changes: 42 additions & 28 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,48 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"/Users/yukai/Projects/HackMD/hackmd-production/public/docs/features.md"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
]
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
},
{
"name": "Run Web Extension in VS Code",
"type": "pwa-extensionHost",
"debugWebWorkerHost": true,
"runtimeExecutable": "${execPath}",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentKind=web"
],
"outFiles": [
"${workspaceFolder}/dist/web/*.js"
]
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch"
}
]
}
]
}
20 changes: 12 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
"editor.formatOnSave": true,
"cSpell.words": [
"zustand"
]
}
32 changes: 16 additions & 16 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ vsc-extension-quickstart.md
webpack.config.js
**/.DS_Store
*.vslx
node_modules
patches
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ Use the same [HackMD](https://hackmd.io) markdown right in VSCode!

## Features

- **New**: Preview you HackMD notes in VSCode
- **New**: Preview your HackMD notes in VSCode
- **New**: Create note from editor content
- HackMD-compatible markdown rendering preview
- We bring most HackMD markdown syntax into VSCode :tada:

### HackMD notes explorer

![sidebar](https://i.imgur.com/N5dS5HG.png)
![sidebar](./docs/media/notes_explorer.png)

### Render codeblock with line numbers
### Render code block with line numbers

![line-numbers](https://i.imgur.com/X31HZqm.png)

Expand All @@ -32,24 +32,39 @@ Use the same [HackMD](https://hackmd.io) markdown right in VSCode!

[release-notes]: https://bit.ly/2VXRTrq

### 2.0.0

#### Added

- Adopt access token based API client. You need to create an access token on the HackMD [settings page](https://hackmd.io/settings#api)
- Add two more tree views: History and Team Notes.

#### Improvements

- Upgrade highlight.js
- Upgrade mermaid
- Upgrade more dependencies
- Adopt `react-vsc-treeview` package for implementing the new tree views. It's now easier to add features and fix bugs for the tree view.
- Reduce bundle size. We accidentally include `node_modules` in our past builds, which is not necessary.

### 1.1.1

#### Added

- HackMD Snippets command
- Use command: `HackMD: Create a code snippet` to create a code snippet on HackMD from selected text range
- Use the command: `HackMD: Create a code snippet` to create a code snippet on HackMD from the selected text range

#### Fixed

- Activity icon it not shown ([#23](https://github.com/hackmdio/vscode-hackmd/issues/23))
- Activity icon is not shown ([#23](https://github.com/hackmdio/vscode-hackmd/issues/23))

### 1.1.0

#### Added

- HackMD Note explorer
- Preview your notes on HackMD
- Create note from editor content in VSCode
- Create a note from editor content in VSCode

### 1.0.0

Expand Down
Binary file added docs/media/notes_explorer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions images/icon/dark/file-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions images/icon/dark/users.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions images/icon/light/file-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions images/icon/light/users.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading