Giter Site home page Giter Site logo

codex-team / codex.notes Goto Github PK

View Code? Open in Web Editor NEW
132.0 22.0 15.0 4.99 MB

WIP: crossplatform desktop notes application based on Electron and Editor.js

License: MIT License

JavaScript 89.40% CSS 8.13% Pug 2.47%
codex-editor electron nodejs javascript

codex.notes's People

Contributors

dependabot[bot] avatar gohabereg avatar khaydarov avatar n0str avatar nespecc avatar nikitos9i avatar talyguryn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codex.notes's Issues

Invalid encoding in placeholder

Short description

Invalid placeholder encoding during header opening.

Expected behaviour

Valid encoding in placeholder

Steps to reproduce

  1. Create a new Note
  2. Press tab
  3. Click on 'H' pictogram

On which platforms did you notice this

This issue annoys me on [macOS 10.13].

App version

I use CodeX Notes [v1.0].

Image

2017-09-03 21 39 56

Implement tests

It's time to use tests in our project. First steps can be found in codex.notes.server-nodejs project.

Folder rename

Rename folder in settings. A frontend is already done.

Queries authorization

  1. client After client-auth , request API server with the User mutation.
  2. API Add new User in DB
  3. API Generate JWT with authorisation data on the API server and return it to the Client
  4. client Save JWT somewhere on the client-side
  5. client Pass JWT with all GraphQL queries
  6. API Check JWT in the middleware

Sync action (after app start)

  1. GET /v1/sync
    Got list of Folders and Notes from server (id | timestamp)
  2. Understand what notes and folders are newer and what are older.
  3. POST /v1/sync/
    With all notes and folders that were changed on the client.
    With all notes and folders IDs for those which were changed on the server.

Notes app

Need to build desktop apps for macOS, Linux and Windows

I want to type title and start my note from first paragraph.

Short description

I want to type title and start my note from first paragraph.

Expected behaviour

I expected enter a title then create a paragraph.

Actual behaviour

I create a new note, type a title and press enter. Then editor put a carret to the second paragraph.

Steps to reproduce

  1. Create a new Note
  2. Click on "Add title", type it and press enter

It doesn't reproduce if you write a note after running app.

On which platforms did you notice this

This issue annoys me on macOS 10.13.

App version

I use CodeX Notes v0.1.6.

Image

oct-12-2017 21-16-52

Reactivate authorisation after the app reloading. Enable syncObserver only after authorisation.

Short description

  • After client reloading, authorisation state should be restored.
  • SyncObserver should be activated only when authorisation is active.

Expected behaviour

  • Authorise with Google, then reload an App. Authorisation should be active.
  • Before authorisation syncObserver should not send any requests.
  • After authorisation syncObserver should send Sync query.

Actual behaviour

SyncObserver always sends sync query on the application start.
Authorisation disappears after application reloading.

Autoresize title input, on enter key set focus to the editor

Short description

I was trying to fill a long title

Expected behaviour

I expected that title will contain several lines

Actual behaviour

Title contain singe line with overflow and horisontal scroll

Steps to reproduce

  1. Create a new Note
  2. Enter title longer that 5 words
  3. Line will not breaks

On which platforms did you notice this

This issue annoys me on [macOS 10.13].

App version

I use CodeX Notes [v1.0].

Image

image

Auth oauth

Simple dialog with two buttons:

  1. offline
  2. google OAuth

ID generation after successful OAuth event

Autosave during title update

Short description

I was trying to update title of an article

Expected behaviour

I expected that article will be saved after each keypress event.

Actual behaviour

I saw was that article was not saved

Steps to reproduce

  1. Create a new Note
  2. Fill title and article body
  3. Append several characters to the title
  4. See that article was not updated

On which platforms did you notice this

This issue annoys me on [macOS 10.13].

App version

I use CodeX Notes [v1.0].

Image

oct-05-2017 20-45-24

Implement logging

Change all console.log to node.js logging module.
Write useful messages to different files in userdir

Folder settings: invite member

  • Bind handler on the input
  • Handle Enter keypress and send data to the server
  • Create method in the Controller (or create Controller) to handle request
  • Make API call
  • Take or imitate API response, handle it
  • Handle Controller response on client
  • Add invited user to the collaborators pane with waiting modifier
  • Show Error dialog if something went wrong

HTTP API Helper

Implement a class for sending API requests.
Like api.request('folder.create', {...})
Do not forget about reply parsing and errors handling

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.