1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 13:19:42 +02:00
Commit graph

160 commits

Author SHA1 Message Date
Taly
94a9a963ff
Set auth cookie lifetime (#102)
* Set auth cookie lifetime

* Small fixes

- upgrade editor and tools
- add link tool
- move "save" button and "uri" field

* Update twig.js

* move to deps
2020-07-27 20:42:37 +03:00
Alexander Menshikov
40d5285e5e
Implement default redirect (#99)
* Implement default redirect

* Move startPage configuration to env

* Remove console.log
Change development config back to master

* remove global middleware
2020-05-09 14:17:29 +03:00
Alexander Menshikov
b744ed592a
Editorjs checklist tool (#98)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2020-05-09 05:38:25 +03:00
Peter Savchenko
c0a4f6f3fd
Update editor (#91) 2019-12-04 19:09:49 +03:00
DorofeevMark
36c6b89023
Handled query params for aliases (#90) 2019-04-16 13:00:19 +03:00
Taly
6ac5c71e26
Upgrade editor and tools (#89) 2019-04-07 14:29:20 +03:00
Murod Khaydarov
d13665c0a2
add meta description (#88)
* add meta description

* remove duplicated string
2019-04-02 15:45:38 +03:00
Peter Savchenko
614b4d8792
Add metrika, hardcode favicon (#87)
* Add metrika, hardcode favicob

* Update editor.bundle.js
2019-04-02 09:47:16 +03:00
Taly
4c64b997c3
Update tools (#86) 2019-04-01 18:08:44 +03:00
Nikita Melnikov
3623aade0b
Implement diff highlight (#85)
* diff highlight

* update docs and function renaming

* fix

* simplify code

* lint code

* lint code

* rename classes

* solution through split func

* update code style

* remove line numbers testing

* Update main.css
2019-04-01 17:32:14 +03:00
Timur Kazantaev
69d036ab5c aside menu current page highlight (#80)
* aside menu current page highlight

* fixex children highlight and changed bold to color

* add page var check

* improvements

* Update layout.twig
2019-04-01 16:21:07 +03:00
Taly
aa7c6b12a6
Update editor.bundle.js (#84)
yarn
yarn build
2019-03-31 20:12:38 +03:00
Taly
c16493130d
Add escape for editor input data (#83) 2019-03-31 19:30:23 +03:00
Peter Savchenko
568e980f86
Unstick menu, little improvements (#81)
* allow all inline tools to Warning tool. Improve styles

* update editor and tools

* improve style for inline code

* unstick menu

* update
2019-03-31 16:31:25 +03:00
Taly
10607a3f35
Upgrade header tool (#79)
resolve #77
2019-03-31 00:08:57 +03:00
Peter Savchenko
9f8cc83e00
Allow all inline tools for Warning tool. Improve styles (#76)
* allow all inline tools to Warning tool. Improve styles

* update editor and tools
2019-03-30 17:58:00 +03:00
Peter Savchenko
42eacba15b
Add warning tool, fix XSS in image alt-tag (#75)
* Add warning tool, fix XSS in image alt-tag

* production build

* Upgrade editor

* Add spaces
2019-03-20 10:07:59 +03:00
DorofeevMark
93bf21fa2d
Misprints fix (#72)
* Added misprints

* Rebuilt bundle in prod mode

* Added config from .codexdocsrc

* Updated .sample

* Removed chatId type conversion

* Renamed chatId to misprintsChatId

* Removed duplicate package

* Moved misprintsChatId initialization
2019-03-14 12:36:25 +03:00
DorofeevMark
98cb88f3af
Added misprints (#69)
* Added misprints

* Rebuilt bundle in prod mode

* Added config from .codexdocsrc

* Updated .sample
2019-03-14 08:19:37 +03:00
Taly
09abc25c48
Upgrade image tool (#71)
* Upgrade image tool

* Upgrade image tool
2019-03-14 00:50:24 +03:00
Peter Savchenko
c7219f8943
Some design updates (#70)
* Auth page styles improved

* styles updated

* upd bundles
2019-03-13 12:25:43 +03:00
Taly
7c7c0d62d9
Move cross-env to dependencies from dev (#67) 2019-03-12 18:43:14 +03:00
Taly
05d5632e83
Add Table Tool (#66)
resolves #58
2019-03-12 17:24:20 +03:00
Taly
8412a27690
Move packages to dev section. Remove unused (#65) 2019-03-12 16:34:16 +03:00
Taly
11b796bcc7
Allow inline-code in Header (#64)
* Allow inline-code in Header

resolves #59

- add `striptags` for titles
- upgrade editor and tools
- show page title in html

* Add line break
2019-03-12 16:23:10 +03:00
Taly
f87fd72fcb
Add Chrome support for mp4 Image block (#63) 2019-03-12 15:48:56 +03:00
George Berezhnoy
404fb4642e
Transport controller and file model (#42)
* Transport controller and file model

* Use randomBytes intead of pseudoRandomBytes

* Cover all lines with tests

* Update code style

* Update code style

* View for image block

* Fix serving static files

* Mkdir -p for uploads dirs

* Add default secret param

* Add image Tool

* Update src/utils/objects.js

Co-Authored-By: talyguryn <vitalik7tv@yandex.ru>

* Use vars for image tool colors

* Revert var

* Remove --color-gray-border var

* Update src/controllers/transport.js

Co-Authored-By: talyguryn <vitalik7tv@yandex.ru>

* Add mp4 support for Image Tool
2019-03-11 18:44:00 +03:00
Taly
82a81ce96a
Add template for Delimiter Block (#61)
resolves #57
2019-03-11 16:13:57 +03:00
Taly
c7c7e61ccf
Update Editor and Tools (#56) 2019-03-08 15:38:22 +03:00
Timur Kazantaev
717fd3fe38
Auth fix (#54)
* Authorization added

* added secret to password, md5 hashing, removed promise from verifyToken, deleted links when not authorized

* added dbinsert script

* turned verifyToken to middleware, added description for dbinsert, added hidden csrf field in auth form

* added middlewares, user model and controller

* JSDoc fix

* wrong password processing fix

* added comments to dbinsert script, moved salt and passHash to singe db doc

* Moved salt to .env, upgradedscript for generating password was, fixed comments and JSDoc

* Deleted using salt (now user is only one), changed verifying password to bcrypt.compare, added httpyOnly property to jwt cookie

* Added verifyToken middleware to aliases route, added check for user existance on POST/auth

* Added message "password not set" to client
2019-03-07 19:46:37 +03:00
George Berezhnoy
d4302c50f6
Fix method name (#50) 2019-03-06 13:54:08 +03:00
George Berezhnoy
420aa69731
Fix URI check in menu (#49) 2019-03-06 13:40:41 +03:00
Timur Kazantaev
58d3892d8f
Authentication (#22)
* Authorization added

* added secret to password, md5 hashing, removed promise from verifyToken, deleted links when not authorized

* added dbinsert script

* turned verifyToken to middleware, added description for dbinsert, added hidden csrf field in auth form

* added middlewares, user model and controller

* JSDoc fix

* wrong password processing fix

* added comments to dbinsert script, moved salt and passHash to singe db doc

* Moved salt to .env, upgradedscript for generating password was, fixed comments and JSDoc

* Deleted using salt (now user is only one), changed verifying password to bcrypt.compare, added httpyOnly property to jwt cookie
2019-03-06 13:22:57 +03:00
Polina Shneider
718be6d2f6
Add og markup (#48)
* Add og markup

* Add og type and time
2019-03-01 19:08:19 +03:00
Murod Khaydarov
7890d17255
refactor createMenuTree (#44)
* refactor createmenutree

* Update src/routes/middlewares/pages.js

Co-Authored-By: khaydarov <murod.haydarov@inbox.ru>

* push migration

* update

* remove migration and order is optional

* eslint fixes
2019-02-19 17:29:45 +03:00
Peter Savchenko
529aca5e29
Small layout updates (#46) 2019-02-18 11:15:03 +03:00
Peter Savchenko
a4031f151f
Code tool updated (#45) 2019-02-18 10:42:12 +03:00
Peter Savchenko
1895fdceaa
Update .gitignore (#43) 2019-02-15 18:13:01 +03:00
Peter Savchenko
044c24c950
Landing + mobile adoptation (#38)
* Landing + mobile adoptation

* replace svg

* small updates

* use landing as iframe

* Delete .codexdocsrc

* remove unused

* updates

* Delete _index.twig

* update header shrink in chrome

* Delete .codexdocsrc

* remove focus
2019-02-15 17:56:56 +03:00
Murod Khaydarov
d1e48cbb64
testing deletion (#31)
* testing deletion

* Update test/rest/pages.js

Co-Authored-By: khaydarov <murod.haydarov@inbox.ru>
2019-01-31 12:28:25 +03:00
Murod Khaydarov
ccd627151f
remove pages (#27)
* remove pages

* requested changes and unit tests

* update

* fix unit test

* requested changes

* add confirmation

* remove deeply

* remove log

* bugfix

* update placeholder
2019-01-25 06:19:37 +03:00
DorofeevMark
d872e78339 Beautiful urls (#18)
* Added uri property to Page model

* Added aliases collection

* Added routing form aliases

* Fixed redirect after page creation

* Added abiltity to support few pages with same title

* Added ability to change uri manually

* Changed hash function

* Changed uri parsing

* Removed pages controller promise

* Modified page's tests

* Added tests for alias model

* Added tests for aliases

* Escaping special characters

* Added missed files

* Fixed bugs related to translation

* Fixed parent page link

* Added server validation for uri

* Changed css properties order

* Made uri property of page be optional

* Prevented alias creation from empty uri

* Moved alias types to model
2019-01-25 02:23:00 +03:00
Taly
ed69336481
Create nodemon.json (#26)
* Create nodemon.json

* Update nodemon.json
2019-01-25 00:31:49 +03:00
Taly
71f192456d
Fix showing [un]ordered list (#24) 2019-01-25 00:01:20 +03:00
Murod Khaydarov
d61818761e
Order child pages (#21)
* save ordering pages

* move to another collection

* requested changes. Code improvements

* add margin

* unit tests

* fix

* requested changes

* recursive method: create menu tree

* update comments

* fix bug

* requested changes

* move const

* fix error message on catch

* add migration

* rewrite to splices

* move methods

* testing put above method

* linter fix
2019-01-19 17:09:11 +03:00
cabad11
dbfc594e66
Don't allow to set child element as parent. (#19)
* filter available pages

* refactor

set function as method of Pages

* change wrong word

* change commentaries

* change method name

* refactor

refactor

* Update src/controllers/pages.js

Co-Authored-By: cabad11 <44175180+cabad11@users.noreply.github.com>

* refactor

change comments
change metod name
2019-01-14 17:53:10 +03:00
cabad11
9966131100
Show parent page title (#14)
* Fix

show parent page

* Update pages.js

* fix

* merge
2018-12-09 21:45:28 +03:00
Peter Savchenko
262c1614ed
New tools added + code highlighting (#12) 2018-10-20 17:54:15 +03:00
Peter Savchenko
f845a0d09f
Show created pages in menu (#11)
* Show created pages in menu

* reverse children sorting
2018-10-19 21:08:24 +03:00
Peter Savchenko
730eff7995
Page showing, page edit, move API to /api/ (#10) 2018-10-15 22:06:01 +03:00