30 Commits

Author SHA1 Message Date
Joe Pea
d72dd287c8 WIP (this commit will be re-written): update use native Node ESM for server code, update config files to specifically use .cjs (those tools don't support Node ESM files yet), use a single eslintrc file, all test code uses ESM import/export syntax instead of require (WIP) 2020-11-16 00:15:14 -08:00
Joe Pea
c354bceb92 WIP adding tests for SSR 2020-11-01 23:45:36 -08:00
Joe Pea
22f1b2b205 add an intial test file for testing SSR 2020-06-16 23:46:34 -07:00
Joe Pea
bbeaafda5b fix: fix lint errors 2020-06-16 23:41:51 -07:00
Joe Pea
0a8deed072 feat: Qualify URLs then see if the origins match.
This takes a string input, and converts it into a fully-qualified URL. For example, `./foo` becomes `http://example.com/current/path/foo`. Then we can compare it to other fully-qualified `URL` instances.
2020-06-16 23:41:50 -07:00
Anix
c21ced405c chore: syncing 2020-06-14 07:19:08 +00:00
Anix
3d662a5bf7 fix: fixed target and rel issue (fixes #1183) 2020-05-20 11:14:26 +00:00
anikethsaha
1e3dd13095 feat: added html sanitizer for remote rendering 2020-04-21 15:35:16 +05:30
Anix
9afa66607d chore: removed circular dep and css.escape 2020-03-09 20:33:07 +05:30
Leonardo Rossi
b53ea1e304
Adds option to specify an header height (#1045)
* Adds option to specify an header height

When using a template that has a sticky-header, clicking on the sidebar will
scroll the page under the header.

I added the option `headerHeight` (default = `0`) so that the content div will
be scrolled down that amount of pixels.

* updates documentation and renames variable
2020-03-09 14:19:31 +05:30
Anix
75c72e917b
chore: added new linter config (#1028)
* chore: added new linter config

* chore: linting fixes

* chore: refactore in linting config and minor linting fixes
2020-02-20 14:01:04 +05:30
Giulio Ambrogi
db97a1d22a Eslint fixes for v4x (#989)
* UPDATE .eslintrc

* UPDATE lint task

* FIX lint errors

* CLEANUP

* FIX no-eq-null warning

* FIX many jsdoc warnings

* FIX jsdoc issues

* FIX jsdoc warnings

* FIX jsdoc

* FIX eqeq and no-eq-null

* ADD lint to travis

* UPDATE test env for eslint
2019-12-30 22:01:46 +05:30
cinwell.li
8352a1e489
refactor: build config (#408)
* refactor: build config

* chore: fix conflict

* fix: 404 page path
2018-03-03 22:51:27 +08:00
qingwei.li
dc0c3ced4e fix(embed): compatible ssr 2018-02-12 16:25:28 +08:00
qingwei.li
9e824a4958 fix: ssr coverpage, fixed #273 2018-02-11 22:22:06 +08:00
qingwei.li
aba2aec0d0 chore: prettier code 2017-09-22 10:07:10 +08:00
qingwei.li
22b50f07c3
fix: auto replace version 2017-05-31 08:25:00 +08:00
qingwei.li
0014895c19
fix(ssr): clean files 2017-05-30 19:39:39 +08:00
qingwei.li
6b9e0922cf
fix(ssr): add debug 2017-05-30 16:16:36 +08:00
qingwei.li
79a83bc17d
fix(ssr): file path 2017-05-30 15:27:04 +08:00
qingwei.li
8595c99c0b
docs(ssr): add ssr 2017-05-30 11:54:37 +08:00
qingwei.li
b764b6e32c
fix: lint 2017-05-30 06:34:16 +08:00
qingwei.li
46261572e3
fix(ssr): remove context 2017-05-30 06:32:41 +08:00
qingwei.li
d4f6072d10 refactor(ssr): path => context 2017-05-30 04:28:30 +08:00
qingwei.li
891475e132 refactor(ssr): for test 2017-05-30 04:28:30 +08:00
qingwei.li
1acfdd335c refactor(ssr): return promise 2017-05-30 04:28:30 +08:00
qingwei.li
1f4514dcad fix: lint 2017-05-30 04:28:30 +08:00
qingwei.li
eba1c987a8 fix(render): init event in ssr 2017-05-30 04:28:30 +08:00
qingwei.li
3444884905 feat: finish ssr 2017-05-30 04:28:30 +08:00
qingwei.li
6dea685fee feat: init ocsify-server-renderer 2017-05-30 04:28:30 +08:00