Skip to content
Open

v2 #138

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
b9f811c
feat(datastore): add new datastore
antonreshetov Jan 21, 2021
4a8b0e0
feat(datastore): add extend methods
antonreshetov Jan 21, 2021
2be6490
feat(datastore): create datastore instance
antonreshetov Jan 21, 2021
bd58c58
feat(datastore): add collection schemas
antonreshetov Jan 21, 2021
bb243d8
feat(datastore): add helpers
antonreshetov Jan 21, 2021
30f6327
feat(util): add helpers for tree
antonreshetov Jan 21, 2021
293a5f3
chore: update gitignore
antonreshetov Jan 21, 2021
1ec8251
chore: add lowdb, joi, uuid
antonreshetov Jan 21, 2021
e34348f
chore: add .prettierignore
antonreshetov Jan 21, 2021
c7c0155
chore: update .prettierrc
antonreshetov Jan 21, 2021
17ca136
chore(datastore): remove joi
antonreshetov Jan 21, 2021
1b68fc6
feat(datastore): check if db files not exist in migrate folder
antonreshetov Jan 22, 2021
d82425b
feat(datastore): add backup
antonreshetov Jan 22, 2021
02c4e35
fix(datastore): remove duplicate create backup dir
antonreshetov Jan 22, 2021
e415620
fix(datastore): tags migrate
antonreshetov Feb 1, 2021
99a3445
refactor(store): folders store
antonreshetov Feb 2, 2021
d02c3df
fix(electron-store): inBox -> inbox
antonreshetov Feb 2, 2021
1b5aa22
refactor(store): use new db in app store
antonreshetov Feb 2, 2021
4c5141a
feat(datastore): add fields in helpers
antonreshetov Feb 2, 2021
a76cdd8
refactor(store): tags store
antonreshetov Feb 2, 2021
30cca21
feat(util): add 'idLink' arg to flatToNested helper
antonreshetov Feb 2, 2021
6cb2eec
feat(datastore): init backup
antonreshetov Feb 2, 2021
fd1025a
feat(datastore): add required parentId in FOLDERS_SCHEMA
antonreshetov Feb 2, 2021
46d477d
feat(datastore): add parentId in createDefaultFolders
antonreshetov Feb 2, 2021
205a586
feat(datastore): add 'massCode_v2' as suffix backup folder
antonreshetov Feb 2, 2021
d97d4a5
fix(datastore): map folder ids in loop
antonreshetov Feb 2, 2021
290fb2d
feat(store): check for exist tag before add new
antonreshetov Feb 2, 2021
5eb0f87
refactor(App): init state
antonreshetov Feb 2, 2021
93b2184
chore(main): open devtools on bottom
antonreshetov Feb 2, 2021
1e68a9b
feat(datastore): add atomic update in $findOneAndUpdate
antonreshetov Feb 2, 2021
fc4f964
refactor(store): snippets store
antonreshetov Feb 4, 2021
c4a03aa
feat(Storage): use new db, add migrate functionality
antonreshetov Feb 4, 2021
7c02539
refactor(TheLibrary): use folders from store
antonreshetov Feb 4, 2021
a906106
refactor(Tray): use new db
antonreshetov Feb 4, 2021
90fe03f
fix(datastore): helpers
antonreshetov Feb 4, 2021
7a0846c
refactor(ipc): rename dispatch method
antonreshetov Feb 4, 2021
faa40e0
chore(main:render): clear
antonreshetov Feb 4, 2021
252081b
refactor(SnippetView): rename selectedTags -> selectedTags
antonreshetov Feb 4, 2021
bce2be3
refactor(SidebarListItem): use new db methods
antonreshetov Feb 4, 2021
da5d026
chore(SidebarList): clear
antonreshetov Feb 4, 2021
2c54835
fix(store): pass snippet to 'addSnippet'
antonreshetov Feb 4, 2021
f52c923
feat(AppInputTags): add clear input tag by click outside, avoid dupli…
antonreshetov Feb 4, 2021
7cc50a7
refactor(SidebarListItem): use new db methods
antonreshetov Feb 4, 2021
81c9787
fix(store): delete tech props on add new snippet
antonreshetov Feb 4, 2021
051f5f8
refactor(TheFolders): use new db
antonreshetov Feb 4, 2021
7024f68
chore: bump to electron v11
antonreshetov Feb 5, 2021
63490c0
fix(datastore): 'nestedToFlat' helper
antonreshetov Feb 5, 2021
34ed249
fix: open devtools
antonreshetov Feb 5, 2021
6024bc2
fix(tray): set 'enableRemoteModule'
antonreshetov Feb 5, 2021
e4da163
refactor: folders tree (#139)
antonreshetov Feb 17, 2021
4d7d196
chore: remove old datastore
antonreshetov Feb 17, 2021
58ace8e
fix(FolderItem): update folder name by edit
antonreshetov Feb 17, 2021
ad75a53
chore(TheFolders): add .vue ext
antonreshetov Feb 17, 2021
65c542c
build: release 2.0.0-beta.1
antonreshetov Feb 17, 2021
d8975f8
build: add ACTIONS_ALLOW_UNSECURE_COMMANDS
antonreshetov Feb 17, 2021
d1dcc81
build: set windows-2019 to win build
antonreshetov Feb 17, 2021
1769b56
build: try to remove win build
antonreshetov Feb 17, 2021
8dc3196
build: add to yarn install timeout 1000000
antonreshetov Feb 17, 2021
9850c5a
feat: disable check for update if is beta version
antonreshetov Feb 21, 2021
782cd8e
feat(SnippetListItem): add favorites mark
antonreshetov Feb 21, 2021
360dd2f
feat(ActionBar): add debounce to snippets search
antonreshetov Mar 15, 2021
cbb2041
feat(search): add multi-word search #143 (#144)
antonreshetov Mar 19, 2021
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
46 changes: 25 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
os: [macOS-latest, ubuntu-18.04, windows-latest]
os: [macOS-latest, ubuntu-18.04]

steps:
- uses: actions/checkout@v1
Expand All @@ -21,10 +21,12 @@ jobs:
run: (node -p "require('./package.json').version") > TAG

- name: Set action ENV
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: echo "::set-env name=TAG::$(cat TAG)"

- name: yarn install
run: yarn install
run: yarn install --network-timeout 1000000

- name: Build
run: yarn run build
Expand All @@ -50,12 +52,12 @@ jobs:
name: linux
path: build/massCode-${{ env.TAG }}.AppImage

- name: Upload Win artifacts
uses: actions/upload-artifact@v1
if: startsWith(matrix.os, 'windows')
with:
name: win
path: build/massCode Setup ${{ env.TAG }}.exe
# - name: Upload Win artifacts
# uses: actions/upload-artifact@v1
# if: startsWith(matrix.os, 'windows')
# with:
# name: win
# path: build/massCode Setup ${{ env.TAG }}.exe

assets:
needs: build
Expand All @@ -68,6 +70,8 @@ jobs:
run: (node -p "require('./package.json').version") > TAG

- name: Set action ENV
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: echo "::set-env name=TAG::$(cat TAG)"

- name: Create Release
Expand Down Expand Up @@ -96,10 +100,10 @@ jobs:
with:
name: linux

- name: Dowload Win Artifact
uses: actions/download-artifact@v1
with:
name: win
# - name: Dowload Win Artifact
# uses: actions/download-artifact@v1
# with:
# name: win

- name: Upload Release Mac Asset (zip)
uses: actions/upload-release-asset@v1.0.1
Expand Down Expand Up @@ -131,12 +135,12 @@ jobs:
asset_name: massCode-${{ env.TAG }}.AppImage
asset_content_type: application/vnd.appimage

- name: Upload Release Win Asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: win/massCode Setup ${{ env.TAG }}.exe
asset_name: massCode Setup ${{ env.TAG }}.exe
asset_content_type: application/octet-stream
# - name: Upload Release Win Asset
# uses: actions/upload-release-asset@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: win/massCode Setup ${{ env.TAG }}.exe
# asset_name: massCode Setup ${{ env.TAG }}.exe
# asset_content_type: application/octet-stream
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ npm-debug.log.*
thumbs.db
.env
!.gitkeep
.idea
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"semi": false,
"singleQuote": true
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "none"
}
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "masscode",
"productName": "massCode",
"version": "1.3.0",
"version": "2.0.0-beta.1",
"author": "Anton Reshetov <reshetov.art@gmail.com>",
"description": "A free and open source code snippets manager for developers",
"license": "AGPL-3.0",
Expand Down Expand Up @@ -68,18 +68,19 @@
}
},
"dependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.10.1",
"@hapi/joi": "^17.1.1",
"@johmun/vue-tags-input": "^2.1.0",
"axios": "^0.19.1",
"date-fns": "^2.8.1",
"electron-store": "^5.1.0",
"electron-store": "^7.0.1",
"emmet-monaco-es": "^4.3.3",
"feather-icons": "^4.25.0",
"fs-extra": "^8.1.0",
"highlight.js": "^9.18.1",
"interactjs": "^1.8.0-alpha.6",
"junk": "^3.1.0",
"lodash-es": "^4.17.15",
"lowdb": "^1.0.0",
"markdown-it": "^10.0.0",
"markdown-it-link-attributes": "^3.0.0",
"monaco-editor": "^0.19.0",
Expand All @@ -93,14 +94,15 @@
"sanitize-html": "^1.21.1",
"shortid": "^2.2.15",
"universal-analytics": "^0.4.20",
"uuid": "^8.3.0",
"vue": "^2.5.16",
"vue-draggable-nested-tree": "github:massCodeIO/vue-draggable-nested-tree",
"vue-electron": "^1.0.6",
"vue-router": "^3.1.3",
"vuex": "^3.0.1"
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-optional-chaining": "^7.10.1",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/polyfill": "^7.7.0",
"@babel/preset-env": "^7.7.7",
Expand All @@ -117,10 +119,10 @@
"css-loader": "^3.4.0",
"del": "^5.1.0",
"devtron": "^1.4.0",
"electron": "^7.1.6",
"electron": "^11.2.2",
"electron-builder": "^22.4.1",
"electron-debug": "^3.0.1",
"electron-devtools-installer": "^2.2.4",
"electron-devtools-installer": "^3.1.1",
"eslint": "^6.7.2",
"eslint-config-standard": "^14.1.0",
"eslint-friendly-formatter": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/main/index.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/* eslint-disable */

// Install `electron-debug` with `devtron`
require('electron-debug')({ showDevTools: true })
require('electron-debug')()

// Install `vue-devtools`
require('electron').app.on('ready', () => {
Expand Down
Loading