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

138 commits

Author SHA1 Message Date
Nikita Melnikov
9f72b324fa implement default config && move password to auth section 2022-10-29 00:27:29 +03:00
Nikita Melnikov
f1248b67f4 update config-loader and remove unnecessary packages 2022-10-29 00:27:06 +03:00
Egor
b67717c8e5
Enforce authentication for API routes (#276)
Closes #275
2022-10-24 22:27:35 +03:00
Nikita Melnikov
4ad37abed0
[Feature] Static pages rendering 🤩 (#274) 2022-10-17 08:25:38 +08:00
Nikita Melnikov
8c794304b6
S3 uploads support (#273)
* finish s3 uploads implementation

* remove unnecessary file

* fix docs

* update DEVELOPMENT.md

* update doc

* update default uploads path
2022-10-08 18:26:11 +08:00
Nikita Melnikov
55b4b3ee61
🤩MongoDB support 🤩 (#272)
* implement configuration through YAML

* remove rcparser

* use password from appConfig

* update docker configs

* fix dockerignore

* implement mongodb driver

* update eslint packages

* fix bugs

* refactor code for grouping by parent

* fix yet another bug

* use unique symbol to the EntityId type

* fix more bugs

* implement db converter

* fix bug with parent selector

* fix eslint

* db-converter refactoring

* create cli program for db-converter

* add readme and gitignore

* update development docs

* update development docs and default config

* add docs about converter

* add src/test to docker ignore

* move database code from utils

* improve docs

* eslint fix

* add more docs

* fix docs

* remove env_file from docker-compose

* implement duplicate detection in db-converter

* use published version of the config-loader

* fix bug

* Update DEVELOPMENT.md

Co-authored-by: Ilya Maroz <37909603+ilyamore88@users.noreply.github.com>

* fix bugs

* fix next/prev buttons

* fix more bugs

* fix sorting

Co-authored-by: Ilya Maroz <37909603+ilyamore88@users.noreply.github.com>
2022-10-03 20:23:59 +08:00
Nikita Melnikov
13762096c4
Implement yaml config (#271) 2022-09-29 06:41:24 +08:00
--Explosion--
5a7f1c843b
fix(readme): editor.js link missprint resolved
Thanks @Explosion-Scratch
2022-09-16 00:05:30 +03:00
Peter Savchenko
2dd4873029
fix(styles): editor styles improved (#268)
* editor blocks margin fix, horisontal scroll fix

* make page and editor more similar
2022-09-15 22:37:12 +03:00
Tanya
5bbfd32621
Fix sidebar being impossible to hide on tablet screen (#266) 2022-09-15 20:12:57 +03:00
Tanya
c383ee48c2
Fix image centering (#265) 2022-09-14 20:27:40 +03:00
Vyacheslav Chernyshev
24aa4a2190
Changed cloning docs from yarn to git clone in README (#264) 2022-09-14 17:43:46 +03:00
Peter Savchenko
2a8684296b
chore(readme): readme update (#263)
* chore(readme): readme update

* write about configuration
2022-09-14 15:58:05 +03:00
Vyacheslav Chernyshev
47198af8bc
Added yarn start command to start on prod (#262) 2022-09-14 15:50:36 +03:00
Tanya
3e5b6a8ba0
Add ability to copy header link (#256)
* Add ability to copy header link

* Update copy button styles

* Update splash border radius

* Remove cursor pointer from header

* Fix for different header sizes

* Update animation

* Update src/frontend/styles/components/page.pcss

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-09-14 15:31:16 +03:00
Taly
51fb6655e2
Beautify terminal output (#261)
* beautify terminal output

- draw welcome banner on server starting
- use minimal logs for webpack
- disable verbose mode for nodemon

resolves #240

* Update server.ts
2022-09-14 13:27:31 +03:00
Peter Savchenko
1cd078317e
chore(styles): list and image blocks style improved (#260)
* update image margings

* upd list style
2022-09-13 18:57:50 +03:00
Peter Savchenko
ceccd234cd
Increase content paddings (#257)
* Increase content paddings

* add margin to the page title
2022-09-13 17:08:07 +03:00
YeoKyung Yoon
a7e859bfd1
fix: cover writing header on mobile (#246) 2022-09-13 12:12:46 +09:00
slaveeks
e1fd9a77f6
Added default index page, default startPage, removed iframe (#250)
* Removed iframe, added default index page, made startPage optional parameter

* Renamed class for landing content

* Added paddings for message in index page, removed iframe link from index

* Renamed landing to greeting

* rm extra margins, upd svg

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-09-12 20:11:44 +03:00
Peter Savchenko
ba40b4f3d9
chore(hawk): fix hawk using the latest version (#255)
that supports ESM nodejs projects
2022-09-12 19:00:48 +03:00
Alexander Chernyaev
0aeab51286
refactor: stretched function (#252)
* delete stretched function
2022-09-12 16:48:13 +03:00
Alexander Chernyaev
07927ccb53
Change paddings and margins (#249) 2022-09-11 21:57:46 +03:00
YeoKyung Yoon
c94273b76a
fix: make slider on top of blocks (#244) 2022-09-09 22:54:53 +09:00
Tanya
c3125adf4b
Multiple fixes (#211)
* Fix horizontal scroll

* Attempt 2

* Fix merge issue

* Do not display right column if it's empty

* Fix editor width on empty page

* A fix

* Consider padding when calculating main column margin left

* Mobile layout fix

* Fix main column width in edit mode

* Edit mode content width fix

* Add comments

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-09-09 16:27:23 +03:00
YeoKyung Yoon
caea20203b
fix: release writing header (#245) 2022-09-09 21:47:21 +09:00
YeoKyung Yoon
1bc65be955
feat: hide-sidebar-content-on-mobile (#241) 2022-09-09 20:25:46 +09:00
Peter Savchenko
237db3e472
chore(ui): a bunch of style updates (#235)
* chore(styles): typography updating started

* page styles updated

* page header nav fix, inline code style fix, table, navigator

* use arrow-right icon instead of "»" in bread crumbs

* a bunch of updates

* make content and write page styles more consistent

* rollback layout change

* upd color text second

* upd sidebar logo text color

* resovle someone's ts errors

* remove duplicated variables
2022-09-06 22:58:50 +03:00
Umang G. Patel
05f8f0d9e1
404 Page not found added (#225)
* replace repose of aliases with error page

* error twig modified with proper messages

* add the error pcss

* the lint removed

* centered the error message

* center style added independent of screen

* the top position changed

* aliases not found added

* aliases throw removed

* Update src/backend/controllers/pages.ts

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-09-02 00:24:33 +05:30
YeoKyung Yoon
09835e3007
Added sidebar toggler (#214)
* feat: add sidebar slider

* fix: fix visibility on mobile layout

* fix visibility on mobile layout
* change keyboard shortcut
* change css property

* fix: fix shortcuts to support Mac

* fix shortcuts to support Mac
* add comment to explain properties

* fix: fix shortcuts

* resolve merge conflict

* fix: remove redundant property

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-08-27 15:21:50 +09:00
Alexander Chernyaev
136702aeb7
Change editorjs from 2.23.2 to 2.25.0 (#229)
* Change editorjs from 2.23.2 to 2.25.0

* Change editorjs version from 2.23.2 to 2.25.0

* Update version editorjs from 2.23.2 to 2.25.0

Co-authored-by: HyTekCoop <atonika35@mail.ru>
2022-08-26 15:55:47 +03:00
Peter Savchenko
505daafc50
jsops: migrate to ESM from CJM (#228)
* jsops: migrate to ESM from CJM

* rm unused code

* fix ci
2022-08-24 17:05:40 +03:00
dependabot[bot]
f05eb15b72
Bump file-type from 16.5.3 to 16.5.4 (#218)
Bumps [file-type](https://github.com/sindresorhus/file-type) from 16.5.3 to 16.5.4.
- [Release notes](https://github.com/sindresorhus/file-type/releases)
- [Commits](https://github.com/sindresorhus/file-type/compare/v16.5.3...v16.5.4)

---
updated-dependencies:
- dependency-name: file-type
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-03 13:20:03 +08:00
slaveeks
70f89f28da
Added page navigation (#209)
* Added navigation on page

* Removed useless log, added docs to navigator component

* Fixed duplicated variables, some changes in navigation functions, changed pages.twig and navigator.twig

* Added flatArray model, changed navigation functions

* Replaced page footer style to page.pcss

* Fixed generating flat array, when pages remove

* Removed useless generating

* Renamed flatArray model to pagesFlatArray, updated descriptions, renamed generate to regenerate, removed hardcoded key name in cache

* Changed styles naming and added margin for navigation

* Added ability to change nesting in flat array, fixed BEM

* Updated nesting parameter, fixed BEM

* Changed navigator component by passing objects, removed navigator wrapper

* Style navigator renamed to navigator__item

* Update src/backend/models/pagesFlatArray.ts

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

* Renamed navigator__item to navigator_item

* Deleted wrappers from navigator buttons, removed page__footer

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-08-02 17:38:02 +03:00
Taly
213f9d89a3
Table of content (#199)
* Create nodemon.json

* Add table of content

* update view

* remove logs

* update tags var

* update layout

* Revert "update layout"

This reverts commit 18aad62257.

* update layout

* Update layout.pcss

* update from master

* Update sidebar.twig

* remove non valued changes

* Update table-of-content.js

* Update table-of-content.pcss

* Update table-of-content.pcss

* Update layout.pcss

* Update table-of-content.js

* remove unused styles

* not module

* rename var

* remove log

* update structure

* Update table-of-content.js

* Update table-of-content.js

* Update layout.pcss

* Update table-of-content.js

* try not to use intersection observer

* Update table-of-content.js

* fix scroll padding

* fix header component layout

* update logic

* fix click area

* Update table-of-content.js

* Update table-of-content.js

* small fixes

* remove unused

* Update table-of-content.js

* Update decorators.js

* Update table-of-content.js

* Update table-of-content.js

* Update table-of-content.js

* Update table-of-content.js

* Update table-of-content.js

* fix scroll issues, resolve eslit ts/js conflicts

* add some todos

* handle up-direction scroll as well

* optimization

* update offsets

* Update header.pcss

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-07-26 18:49:30 +03:00
Umang G. Patel
13cc53e4ae
Feat/hawk integration (#210)
* update environment variable

* add: hawk nodejs and javascript catcher

* fontend hawk integration

* backend hawk integration

* update the env file and config files

* support for client, backend error tracking token

* client side error tracking refactor

* new version of hawk.nodejs catcher added
2022-07-26 09:56:20 +05:30
Nikita Melnikov
1fb7bc8dcc
update actions versions (#217)
* update actions versions

* fix
2022-07-22 21:58:14 +08:00
dependabot[bot]
f71f6b70f3
Bump terser from 5.12.1 to 5.14.2 (#216)
Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 10:32:40 +03:00
dependabot[bot]
7e530a0630
Bump got from 11.8.3 to 11.8.5 (#213)
Bumps [got](https://github.com/sindresorhus/got) from 11.8.3 to 11.8.5.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v11.8.3...v11.8.5)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 10:27:28 +03:00
YeoKyung Yoon
69b61a2c87
Update document editor styles (#180) (#191)
* feat: update document editor styles (#180)

* fix: fix flexbox property

* fix: fix label name in the edit mode

* fix: change padding and bottom arrow as Figma size

* fix: change padding and bottom arrow as Figma size

* fix: add universal input, select directive

* fix: fix layout shift, class name

* fix: fix text cutting and change usage of svg in css

* fix: add missing css property
2022-07-12 00:11:08 +09:00
slaveeks
5c4183b717
Added ability to use custom favicon (#202)
* Added ability to change favicon in config

* Turned back version of icon in index.twig

* Added opportunity to upload favicon and route to get saved favicon

* Removed favicon from .codexdocsrc.sample

* Added docs to favicon route

* Replaced uploadFavicon to initiating /favicon route, updated function, added catching errors from uploadFile

* Updated Readme, added info about setting up app

* Updated Readme.md

* Some changes

* Favicon data saves to app.locals, replaced uploading favicon to app.ts

* Changed naming in config, from faviconURL to favicon, changed using app.locals variables

* Renamed uploadFavicon to downLoadFavicon, removed log in locals.ts

* Renamed favicon variable in app.ts

* Added checking favicon before uploading function, removed passing locals to views

* Added timeout for uploading favicon request and writeFileSync changed to writeFile

* Removed passing favicon locals and turned back removed variables

* Turned back variables

* Fixed duplicating os.tmpdir

* Fixed braces in objects, added new lines

* Added default favicon path, if favicon does not exists in config

* Updated docs, fixed using local favicon
2022-07-10 15:21:32 +03:00
dependabot[bot]
ac40723c16
Bump got from 11.8.3 to 11.8.5 (#206)
Bumps [got](https://github.com/sindresorhus/got) from 11.8.3 to 11.8.5.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v11.8.3...v11.8.5)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-04 22:00:22 +03:00
Tanya
8c0211d7bc
[Fix] Several ui fixes (#205)
* Fix sidebar

* Use squircle mask for header links

* Firefox mask-box-image fix
2022-06-27 20:06:56 +08:00
Tanya
669b78b967
Layout update (#208)
* Add right column

* Cleanup

* Fix center column position

* Change sidebar width

* Fixes

* Make right column sticky

* Add placeholder element to right column

* Fix right aside padding top
2022-06-27 20:04:26 +08:00
YeoKyung Yoon
b3d8a1bfd4
Fix sorting in dropdown (#187)
* fix: fix order of page categories with raw type

* refactor: change method location and others

* refactor: fix method names and variables also split methods to be clear their role

* fix: fix variable name

* fix: change the method to group of pages

* refactor: replace filter metethod to querying database

* refactor: fix typo, rename variable, add comments, improve code quality

* fix: add exit infinite loop

* fix: replace exiting loop to throwing exception
2022-06-22 23:09:08 +09:00
Tanya
30d96909d3
Sidebar redesign (#200)
* New sidebar

* Save state to local storage

* Make sidebar sticky

* Text overflow

* Fix add page button on mobile

* Mobile layout

* Display sidebar when ready

* Add logo

* Remove files

* Fix margin

* Update logo padding-bottom

* Hovers

* Decrease logo's font size

* Make logo not sticky

* Cleanup classnames

* Simplify css

* Update sidebar module

* Fix animation

* Fix cursor issue

* Fix vars and logo paddings
2022-06-16 16:37:37 +03:00
YeoKyung Yoon
16ba86fddb
Add project logo at the bottom of aside (#190)
* feat: add project logo at the bottom of aside

* fix: fix unaligned logo
2022-06-03 00:01:02 +09:00
YeoKyung Yoon
9ecf8f90d9
Change list of menus and add hover effect of menu (#189)
* feat: change list of menus and add hover effect of menu

* fix: fix hover effect

* fix: fix wrong font size, height, padding and etc to same as Figma

* fix: fix class name

* fix: fix wrong css values

* fix: fix typo

* Delete package-lock.json

* fix: change menu height as much as button height and padding

* fix: fix logo and menu items on header

* fix: fix --layout-padding-horizontal value

* fix: remove irrelevant var

Co-authored-by: Umang G. Patel <23169768+robonetphy@users.noreply.github.com>
2022-06-02 23:57:07 +09:00
Tanya
dd7537a6a0
Fix paddings of icon only button (#193)
* Fix paddings of icon only button

* Update paddings
2022-06-01 16:18:58 +08:00
Tanya
f714225e20
Add button component (twig) (#188)
* Add button component

* Replace old buttons with the new ones

* Update icons and border radius

* Update add page button

* Set size small to add page btn

* Update button indentation

* Cleanup

* icons and button component updated

* upd secondary colour, page button call

* Update small button padding right

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-05-24 07:49:06 +03:00