210 Commits

Author SHA1 Message Date
be9701305e
Change from js to Typescript 2023-11-14 05:04:27 +01:00
Tuxedo Takodachi
b047925392 XT 2.2.0: ability to restore posts from external archives 2023-10-27 16:16:19 +02:00
Tuxedo Takodachi
f5ba6a0941 Move some files to ts 2023-10-27 12:15:54 +02:00
Tuxedo Takodachi
5815070572 Fix DataBoard
Related to bug https://github.com/TuxedoTako/4chan-xt/issues/7
2023-09-02 16:36:06 +02:00
Tuxedo Takodachi
144143e2b0 Fix inlining/previewing of archive links like quote links. #5 2023-07-22 17:54:11 +02:00
Tuxedo Takodachi
7d6dd7c653 Audio posts
Not yet available int the gallery. Ill add that if someone asks for it.
2023-06-24 17:52:48 +02:00
Tuxedo Takodachi
0c1b6a7f0d Clean up Array.froms from migration 2023-06-16 22:22:04 +02:00
Tuxedo Takodachi
0c2d652e85 Remove font awesome, use utf-8 icons instead 2023-04-30 13:36:40 +02:00
Tuxedo Takodachi
be62c12b9e Fix post parsing and package.json meta links 2023-04-09 11:13:22 +02:00
Tuxedo Takodachi
35eefa3d09 Add types to Post 2023-03-31 19:02:10 +02:00
Tuxedo Takodachi
f1b998bd7c Rename post.js to .ts to keep git history 2023-03-31 17:17:44 +02:00
Tuxedo Takodachi
06a72ee79b Cleaner PostClone constructor workaround 2023-03-19 12:49:50 +01:00
Tuxedo Takodachi
567a1fe45e Squash and cleanup of the following:
- cca085e60090ca21edf0dee6aa012fc4c949809a
  start of import/export

- f816da146c32f010476872d15b58ec8301b9fdf2
  start of changing stuff until I can get a bundle

- c92adde147792356ff206107b2311590e8b2c054
  first bundle without errors

- e652dd2b785e355e0ac33566da7eaaaa19c7c539
  Bundling works with ts files

- 60fdb2539a757ca2f66258b21adf81246873893f
  meta info in compilation

- 8ccae783cbf65ac186d5669dedd9f945f7608694
  new build doesn't cause errors on page load as userscript

- 6fa11c42a05572779870f94b7ef4ea8dac373450
  work in progress: load userscript in browser and fix bugs

- b15c557d483de544a38a28cb78f25139d1d8421f
  migrated yotsuba templates to plain js

  the old templates caused some variable be in a wrong scope after
decaffeinate, causing them to be unreadable from the old template

  the old templates caused some variable be in a wrong scope after
decaffeinate, causing them to be unreadable from the old template

- 9d763e852fde74808ca14d5a8d6be45f51ae2765
  update readme

- 924eda8268bcfc4f1c0a83062ecd1d0d65bd92aa
  added more imports, and now the circular dependencies are haunting me

- ddd2d23315d801c7deaa28313833e667698aadd3
  jsx templates for escaped strings,
  more bug fixed from circular dependencies

- fee484dd447820d908c77b1e9d31235ab95a481c
  some fixes, clarify jsx

- e1d01d02eba5db2f604a5df786c525e95f32a2f9
  Unpacked extension
  more fixes

- 97d9090b712d20f7d851c82af84c65060f1a9c6e
  fixed class on post that caused catalog to appear empty

- 96a2c7b4a1e69f5812d1e53b2e4c90f6d8447b02
  A child class that's not supposed to run the parents constructor? That needs a workaround in es6 classes.

- fc06b4e1b2769550d4c69377b84d3ccacdb2e013
  changed jsx to make the tests pass

- 7b317b2a0feabe8caa547c76baf0c908b21592f1
  revert archive and banners to json
2023-03-15 21:01:03 +01:00
ccd0
98dcd7cd34 Rename files from .coffee to .js.
for f in src/*/*.coffee; do git mv -- "$f" "${f/.coffee/.js}"; done
2023-03-13 13:07:48 -07:00
ccd0
34e0f149dc Bulk decaffeinate; don't rename files yet.
node_modules/.bin/decaffeinate --loose --nullish-coalescing --optional-chaining src/*/*.coffee && for f in src/*/*.coffee; do mv -- "${f/.coffee/.js}" "$f"; done
2023-03-13 13:06:12 -07:00
Tuxedo Takodachi
60ae31ead0 Resolve even more templating issues before decaffinating 2023-02-23 21:19:18 +01:00
Tuxedo Takodachi
166ecb42f7 Resolve templating issues before decaffinating 2023-02-23 21:04:32 +01:00
ccd0
84e423d0d8 Update for flag changes on /mlp/ and /pol/. 2021-05-06 12:48:28 -07:00
ccd0
44ca4c34bb Fix 'Reveal Spoiler Thumbnails' on .bmp files. 2020-06-16 01:23:25 -07:00
ccd0
2c2dfa34b9 Don't prune data for threads on kissu.moe while they're in the archive, take 2, using archive.json. 2019-12-13 11:27:08 -08:00
ccd0
9a67285c76 Revert "Don't prune data for threads on kissu.moe while they're in the archive."
This reverts commit aca7ed0a550ecab4bcc38d13c09b2e5da115155c.
2019-12-13 03:12:13 -08:00
ccd0
aca7ed0a55 Don't prune data for threads on kissu.moe while they're in the archive. 2019-12-12 18:40:05 -08:00
ccd0
334f7e2a52 Recognize archived threads on kissu.moe as threads. 2019-10-21 20:54:51 -07:00
ccd0
bb8fab20b0 Make date parsing work on onesixtwo.club. 2019-08-11 21:22:19 -07:00
ccd0
e4fd082bde Avoid errors on sites with invalid date info on posts. 2019-08-11 20:27:41 -07:00
ccd0
46fb24219b Require period in image/video filename. 2019-08-04 20:12:15 -07:00
ccd0
bbed2d24a4 Merge commit '43661e8888fadbdf7796689cfb653604463a0f7e' 2019-08-04 12:46:22 -07:00
ccd0
fa346147de Fix bug from e75700f5d9377541842130515b248fbe5a20edf8 2019-08-03 10:19:47 -07:00
ccd0
e75700f5d9 Safer property access. 2019-08-03 00:23:08 -07:00
ccd0
fba3d2d18e Make HTML templates output Javascript, part 3. #829 2019-07-25 19:48:06 -07:00
ccd0
10f5f60b7f Changes in preparation for Coffeescript 2. #829 2019-07-19 10:26:29 -07:00
ccd0
d2c2c017f1 postID should be copied to clones also. 2019-07-18 22:58:50 -07:00
ccd0
171202665e Merge branch 'bstable' 2019-07-18 22:55:51 -07:00
ccd0
6f13f41b72 These properties should be copied to clones. 2019-07-18 22:53:54 -07:00
ccd0
c6684f5ba2 Add option Filter in Native Catalog to apply 4chan X filters on native catalog. Also works on vichan sites. #2351 2019-07-18 15:15:05 -07:00
ccd0
1bf75fdca0 Post.resurrect should restore the deleted-file class. 2019-07-15 20:08:27 -07:00
ccd0
879b982f01 Partial multifile support in post.kill. 2019-07-15 19:55:06 -07:00
ccd0
194c2d3371 Let file.index be the index in post.files and file.docIndex be the index in the document. 2019-07-15 19:31:34 -07:00
ccd0
64d1e5b21d Add some convenience properties. 2019-07-13 03:49:11 -07:00
ccd0
393ee447d7 Implement thread.lastPost. 2019-07-13 03:14:03 -07:00
ccd0
71187133c1 First step toward multifile support. #2171 2019-07-12 17:31:01 -07:00
ccd0
72b7c8dc5e Use new flags argument to set isFetchedQuote. 2019-07-12 14:30:28 -07:00
ccd0
64d8dce693 Change fourth argument of Post constructor to more general flags argument. 2019-07-12 14:27:33 -07:00
ccd0
a6ab951170 Fix Tinyboard/vichan post form redirecting before your posts can be recorded as yours. #2171 2019-07-11 00:29:48 -07:00
ccd0
a214f51755 Move Build to SW.yotsuba.Build. 2019-04-09 06:49:13 -07:00
ccd0
38f63e6aa8 Move most stuff from Site to g.SITE; Site.hostname -> g.SITE.ID; put data for other sites in g.sites. 2019-04-09 03:30:58 -07:00
ccd0
2450d04173 Rename Build.Test to Test. 2019-04-08 23:27:38 -07:00
ccd0
c5d01ce6d6 Use boards.json to determine whether to activate [code] and [math] tag related functions. #525 2019-04-08 03:50:18 -07:00
ccd0
f3ed76f32f Support specifying the sites that filters apply to. #2171 2019-04-06 05:57:16 -07:00
ccd0
d2e8efb59c Restore filtering on email. #2171 2019-04-04 18:43:43 -07:00