hackjutsu / lepton Goto Github PK
View Code? Open in Web Editor NEW💻 Democratizing Snippet Management (macOS/Win/Linux)
Home Page: https://hackjutsu.com/Lepton
License: MIT License
💻 Democratizing Snippet Management (macOS/Win/Linux)
Home Page: https://hackjutsu.com/Lepton
License: MIT License
A progress bar would be much better than a blank page.
Should we implement the partial search for gists?
http://fusejs.io/
Currently, we are using ElasticLunr as search engine that only supports full-word.
I use Version 1.0.0-beta.3 (1.0.0-beta.3), and CAN connect to Github gist, but this message keep coming, DevTool console told me
Unhandled rejection TypeError: Cannot convert undefined or null to object
at NavigationPanel.renderLangTags (file:///Applications/Lepton.app/Contents/Resources/app.asar/bundle/app.bundle.js:1962:14)
at NavigationPanel.renderTagSection (file:///Applications/Lepton.app/Contents/Resources/app.asar/bundle/app.bundle.js:2019:16)
at NavigationPanel.render (file:///Applications/Lepton.app/Contents/Resources/app.asar/bundle/app.bundle.js:2052:14)
at /Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:796:21
at measureLifeCyclePerf (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:75:12)
at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:795:25)
at ReactCompositeComponentWrapper._renderValidatedComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:822:32)
at ReactCompositeComponentWrapper.performInitialMount (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:362:30)
at ReactCompositeComponentWrapper.mountComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:258:21)
at Object.mountComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactReconciler.js:46:35)
at ReactCompositeComponentWrapper.performInitialMount (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:371:34)
at ReactCompositeComponentWrapper.mountComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:258:21)
at Object.mountComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactReconciler.js:46:35)
at Object.updateChildren (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactChildReconciler.js:121:51)
at ReactDOMComponent._reconcilerUpdateChildren (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactMultiChild.js:208:32)
at ReactDOMComponent._updateChildren (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactMultiChild.js:312:31)
at ReactDOMComponent.updateChildren (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactMultiChild.js:299:12)
at ReactDOMComponent._updateDOMChildren (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactDOMComponent.js:936:12)
at ReactDOMComponent.updateComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactDOMComponent.js:754:10)
at ReactDOMComponent.receiveComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactDOMComponent.js:716:10)
at Object.receiveComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactReconciler.js:125:22)
at ReactCompositeComponentWrapper._updateRenderedComponent (/Applications/Lepton.app/Contents/Resources/app.asar/node_modules/react-dom/lib/ReactCompositeComponent.js:754:23)
I don't know how to apply unit tests for a redux app. Help wanted.
Check out this page: https://github.com/sindresorhus/electron-context-menu
Users would expect the right click to show up the context menu. If it doesn't, users would consider it as a bug.
感谢作者的项目,挺好用的。
发现对Objective-C没有高亮支持,另外Github Gist本身是支持Markdown的,但在Lepton中显示的是纯文本。
Replace the #null
with #Other
No blank field is allowed.
It would be better if we can apply custom tags to the gist, not just the language tags.
The app should exit gracefully.
If the user closes the app on macOS without quitting the main process, and then tries to re-open it by clicking the icon from the dock, the app should automatically login.
It will be good if proxy setting is supported.
Now, Lepton relies on manual sync, i.e., by clicking the #sync
button.
Users are asking for the auto sync feature which users can define the sync intervals.
We notice that the app is not updated if the user creates his/her first gist. This issue seems to exist only for the first gist.
Investigate this corner case and fix any bugs if necessary.
Error should be displayed if the sync or the gist fetching fails.
Should we support deleting a gist from client?
Clicking the login button when the AuthWindow is open could trigger crash. We should just disable the button and show up a welcome image instead.
I would like to implement an in-app notification/toast system, rather than calling the OS's specific one.
But this is not a critical issue at this moment.
The app should fail gracefully and navigate users back to the login dialog.
As stated in the title... But what's the definition of offline mode?
A minimum implementation would be to save the redux state to disk each time we perform a sync, and initialize the redux with said persistent state(if any) when launch.
At least a new icon...
Version:
macOS 10.12.3
Lepton 1.0.0-beta.4
Problem:
After login my github, Lepton give a Sync Sucess
notify and show loading progress, But after few seconds, the window change to login page again!
Some Log:
2017-02-04T04:41:14.519Z - info: Found user profile null
2017-02-04T04:41:16.296Z - info: [Dispatch] updateAuthWindowStatus ON
2017-02-04T04:41:34.326Z - info: [Dispatch] updateAuthWindowStatus OFF
2017-02-04T04:41:34.330Z - info: [Dispatch] updateUserSession IN_PROGRESS
2017-02-04T04:41:35.579Z - info: [Dispatch] updateUserSession IN_PROGRESS
2017-02-04T04:41:35.580Z - info: [Dispatch] updateAccessToken
2017-02-04T04:41:38.165Z - debug: The gist number on this page is 6
2017-02-04T04:41:39.134Z - debug: The gist number on this page is 0
2017-02-04T04:41:39.141Z - info: [Dispatch] updateSyncTime
2017-02-04T04:41:39.142Z - info: [Dispatch] updateGists
2017-02-04T04:41:39.142Z - info: [Dispatch] updateGistTags
2017-02-04T04:41:39.144Z - info: [Dispatch] selectGistTag
2017-02-04T04:41:39.145Z - info: [Dispatch] fetchSingleGist 5d84822a5b0d707c53d8
2017-02-04T04:41:39.148Z - info: [Dispatch] selectGist 5d84822a5b0d707c53d8
2017-02-04T04:41:39.149Z - info: [Dispatch] updateUserSession ACTIVE
At this moment, the basic copy&paste doesn't work.
https://pracucci.com/atom-electron-enable-copy-and-paste.html
如题
Currently, the snippet thumbnail shows gist description completely, which sometimes is too long for a thumbnail card.
Proposal:
[title] description
.It might be nice to have a local search feature.
On macOS, if an app is not fully closed, it is expected to open again when the icon is clicked.
What benefit will it provide if there is a sharing button?
Highlight.js
, the syntax highlight module currently used, doesn't come with a native line number support.
highlightjs-line-numbers.js, a plugin to address this issue, is based on DOM operation which I don't have much experience with.
如题
居然不支持中文。我们以一个鸡肋的搜索功能来庆祝鸡年大吉!!
Render the markdown file automatically. This seems to be the most wanted feature.
https://www.npmjs.com/package/marked
https://www.npmjs.com/package/markdown-to-html
They should be sorted alphabetically.
The app should be able to navigate to the GitHub page somehow.
Now it takes about 2s to launch. Reduce the launch time to 0.5s below.
The AuthWindow's control bar only complicates the app state management without providing any benefits for either developers and users. Just change it to a frameless window.
Might have a better option for local storage.
https://journal.standardnotes.org/moving-beyond-localstorage-991e3695be15#.yz62kzgsu
For a typical gist description,
[Sending IPC events from main to renderer in Electron] (http://stackoverflow.com/a/36809014/3697757) #keywords: electron ipc
we should make it looks nicer in the snippet section:
Sending IPC events from main to renderer in Electron
http://stackoverflow.com/a/36809014/3697757
#keywords: electron ipc
webpack 2 has significantly reduced the compilation time and simplified the configuration.
webpack 2 release:
https://medium.com/webpack/webpack-2-2-the-final-release-76c3d43bf144#.na4zxwu6a
migration guide:
https://webpack.js.org/guides/migrating/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.