rejetto forum

The "Takeback" template - A different & modern taste

NaitLee · 54 · 11000

Poll

Do you want a tool for creating templates easily?

Yes, I know nothing about coding, but I can do Windows Paint
0 (0%)
Yes, I can do HTML/CSS, but not javascript nor macro
0 (0%)
Yes, I can do Web basics, but not HFS macro
1 (100%)
No, I'm a full-code developer
0 (0%)

Total Members Voted: 1

0 Members and 1 Guest are viewing this topic.

Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 144
  • Computer brained boy
    • View Profile
    • A Normal Webpage
Want Fuh-2.0-Liked grid filelist in Takeback? Use the diff tpl in attachment :D
Check out my template ;)


Offline dj

  • Tireless poster
  • ****
    • Posts: 275
  • 👣 🐾
    • 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: 266
    • 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: 144
  • Computer brained boy
    • View Profile
    • A Normal Webpage
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?
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: 2039
    • 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: 144
  • Computer brained boy
    • View Profile
    • A Normal Webpage
Takeback 0.3 is done :) see first post

Features:

Basic things
File Preview, comment
Music player, lyric support (.lrc)
Login, Logout, Change password
File/Folder Manipulation
anti-file-corrupt
thumbs, slideshow
Generator
Localize
« Last Edit: April 14, 2021, 04:50:32 AM by NaitLee »
Check out my template ;)


Offline danny

  • Tireless poster
  • ****
    • Posts: 266
    • View Profile
compact lazyload script
Code: [Select]
<script>document.addEventListener("DOMContentLoaded",function(){var e,t;"IntersectionObserver"in window?(e=document.querySelectorAll(".lazy"),t=new IntersectionObserver(function(e,n){e.forEach(function(n){n.isIntersecting&&setTimeout(()=>{var e=n.target;e.src=e.dataset.src,e.classList.remove("lazy"),t.unobserve(e)},181)})}),e.forEach(function(e){t.observe(e)})):alert("Your browser needs an update")});</script>has 181ms delay in-between photos so that the server has some time to perform other tasks or serve multiple users 

The new version of Takeback seems to spend more time with macros; maybe there are some tasks that can be done with javascript (many client CPUs) instead of macro (one server CPU)? 
« Last Edit: April 28, 2021, 03:19:13 PM by danny »


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 144
  • Computer brained boy
    • View Profile
    • A Normal Webpage
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
Check out my template ;)