rejetto forum

The "Takeback" template - A different & modern taste

NaitLee · 54 · 9322

Poll

What should I do now? :D

Try to make a similar HFS program in Python
1 (50%)
Upgrade/Remake Takeback template
0 (0%)
Make more new templates
1 (50%)
Learn WebAssembly/AssemblyScript
0 (0%)

Total Members Voted: 2

0 Members and 1 Guest are viewing this topic.

Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 139
  • Computer brained boy
    • View Profile
Want Fuh-2.0-Liked grid filelist in Takeback? Use the diff tpl in attachment :D
Busy in school until late June, 2021.
Check out my template ;)


Offline dj

  • Tireless poster
  • ****
    • Posts: 272
  • 👣 🐾
    • View Profile
    • PWAs
What should I do now?

Learn Nodejs and do further work on HFS3 :D
« Last Edit: February 06, 2021, 07:44:30 AM by dj »


Offline danny

  • Tireless poster
  • ****
    • Posts: 256
    • View Profile
Yes, HFS3,
Or, refit a master-scheduler to HFS2x so that it can't get overloaded/flooded by 1 thing.  Currently, I think that the only schedule is in downloads; but, upload, draw UI, archive, etc are unscheduled/conflict.  Would be better if all functions were inside a scheduler (task-swapper) module so that all get near-equal cpu time.
« Last Edit: February 09, 2021, 08:18:41 AM by danny »


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 139
  • Computer brained boy
    • View Profile
Learn Nodejs and do further work on HFS3 :D

Ah, for some reasons I don't want to learn Node.
And by the way, I'm not really a tech-master, cannot do large projects with multiple files relied to each other, at least for now.
Sorry for that.

Besides, I just trying to make a template interpreter for a minimal "HFS" in Python, cross platform and lightweight for template making & debugging.
It's been a long time since last trial and I've messed up... Now trying to re-write...

P.S. I worry about that if anything unfortunate happened then we cannot use our beloved HFS 2, so I had such an idea. I'm not wondering to replace it. Don't think too much :)
P.S.2. I want to get away from the hand of Windows, should I write my Linux experience on this forum/elsewhere like GitHub Pages to help other guys who want so?

Would be better if all functions were inside a scheduler (task-swapper) module so that all get near-equal cpu time.

@Rapid has a version of HFS 2 that splitted server and client code. Have a try on that?
Busy in school until late June, 2021.
Check out my template ;)


Offline Rapid

  • Occasional poster
  • *
    • Posts: 42
    • View Profile
    • R&Q Portal
...
@Rapid has a version of HFS 2 that splitted server and client code. Have a try on that?
I'm just trying to split.
One of the problems is that macroses are rely on client side


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2036
    • View Profile
in theory any language can be used to create a template interpreter, you need to create a syntax parser for two types of macros: {. .} and {::}, in an execution tree pointing to a reference table with the different macro names and the procedures for the associated actions

most of the hfs macros are processed in scriptLib.pas and the parser in parserLib.pas

an hfs interpreter written in java would allow portability on several platforms,

using php would surely be possible but it would certainly have limits because it is already an interpreted language


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 139
  • Computer brained boy
    • View Profile
These days I'm making Takeback 0.3. I can't wait to let people see it (and it's source code) now  :D
In attachment is a not-so-completed version.

It's completely rewritten. Developers, please check out things inside.
Btw I've given up support for old browsers. It's a new era.

Done:
Basic things
File Preview, comment
Music player, lyric support (.lrc)
Login, Logout, Change password
File/Folder Manipulation
anti-file-corrupt
thumbs, slideshow

To-do:
Generator
Localize
« Last Edit: Today at 07:00:36 AM by NaitLee »
Busy in school until late June, 2021.
Check out my template ;)


Offline danny

  • Tireless poster
  • ****
    • Posts: 256
    • View Profile
Your [not found] doesn't do parent of explicit original; and, therefore you could simplify it down to:
[not found]
{.redirect|../.}

Error pages must accomplish 3 things.  Stop the masquerade (no invalid file saving), lightest CPU load, valid user is not lost. 
So, we do those first.  Probably, 3 things + cake is for later.  :)
To stop the masquerade (right-click save-as corrupt file), I suggest: 
Foe = [overload] [deny] [ban] = {.disconnect.}  ... and log macro too
Friend = [max contemp downloads] [unauth] [not found] = {.redirect.}
That is because error pages is cousin to firewall, except at app level.

See also:  http://rejetto.com/forum/index.php?topic=13429.msg1066875#msg1066875

« Last Edit: Today at 09:07:09 AM by danny »


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 139
  • Computer brained boy
    • View Profile
compact lazyload script...

In takeback 0.2 I used your script, it works well
In new version I used native lazyload because I want to keep it simple
Busy in school until late June, 2021.
Check out my template ;)