From d804db1ba21db6bd09d66eb05d5d02e2e78e7432 Mon Sep 17 00:00:00 2001 From: VnPower Date: Tue, 17 Sep 2024 23:10:37 +0700 Subject: [PATCH] Fix AiType --- .../fragments/.thumbnail-dt.jet.html.swp | Bin 0 -> 12288 bytes assets/views/fragments/thumbnail-dt.jet.html | 3 ++- doc/dev/.guidelines.md.kak.YMWRiB | 9 +++++++++ doc/dev/guidelines.md | 18 ++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 assets/views/fragments/.thumbnail-dt.jet.html.swp create mode 100644 doc/dev/.guidelines.md.kak.YMWRiB create mode 100644 doc/dev/guidelines.md diff --git a/assets/views/fragments/.thumbnail-dt.jet.html.swp b/assets/views/fragments/.thumbnail-dt.jet.html.swp new file mode 100644 index 0000000000000000000000000000000000000000..616e42963d466d0f4527ad0b1b0fd18899d9464c GIT binary patch literal 12288 zcmeI2O-~a+7{>=97X>xo2Y6T#0*CIl_!3^WH3SoEqQ=x}OpGzp?zA1d-EDTKEm-j7 z?8$@=;MGsyNAM&U{Q%yKCvToS_{{E>Vrh|Z!#oZDY-i?qo8LUs3tLJ*%HM?*GsEz6 znXxY)epL2ekF))AjJ3U{-w}acIrei>yO)Wfwc$I$YRWCyt_Z8WWbrT*Dzw^CbV92V z@M=SNI99b*qvUbvrW|EH7s{-uhI?!!v`7Sqz)%7$RY@&Rv8zj&v|gVxW?^Rf;ZReW zBmzW$2oM1xKm>>Y5g-CY;Qu6`nq%x0Zf!i-9wg7PfoC$L2N56wM1Tko0U|&IhyW2F z0z`la5CI}^1_^M7vBr7ECN5y{`2T-M_VDQvV|%D)C=)e}`gxJDuc-H^cc>7RM~$I= zO)>TzwU2s(3Q!MFS5OnE-;<1eM!iKDsBf6>BdUX{q72jwY7!OIat2va$wYt%5CI}U z1c(3;AOdHDfNfijZ08t&ZE^ho=yp>eJO_4nqoFMuRS1J}*64P@EcV_@#bpDytCDG{ zToFyVK6j*7%^EI$v2B2LD5e`~lYyWXhPSvhn_l%a@ni+oWpTSHAe)6Hn4gE5bi}$G zk;n@xol~U3EDPr2f(TV0%L;Ok?qw=umSHvvhH+?OGoD$5ot?kj4p)eN2WAlyn}gy( zRm4E!uMyB%ASzkI;(_Y;K|QqeDdcbA(p+vN zkbH$zNXH3#2Y>X$u_K`D;+x4?BT1WT@~TLc{g%#UhfVI~=I2&!T)(zvThZvCjpAqs z%*?xPD^&fnNsfN7y-t>_dEpm|QwZUN0{@$_iqYYqSU3CAD z@wBviA(dIiH4!(j9&PGjbU%^;;*K7+kHD{RPpa*d%S*zIPN~nQp9&i&J*v`SVf|1l z>3c>_(GA%{$<0xBpsmF7vt#mkYL<#qF`K?H_Sjb5I3%Agvs5)_S*3Mx)gV0 zsGb▶ {{- end }} + {{- AiType := isset(.AiType) ? .AiType : 0}} {{- if (.XRestrict > 0 && hideR18 != "" && hideR18G != "") || (.XRestrict == 2 && hideR18G != "") }} {{ .Title }} - {{- else if .AiType == 2 && hideAi }} + {{- else if AiType == 2 && hideAi }} {{ .Title }} {{- else }} {{ .Title }} diff --git a/doc/dev/.guidelines.md.kak.YMWRiB b/doc/dev/.guidelines.md.kak.YMWRiB new file mode 100644 index 0000000..170c09e --- /dev/null +++ b/doc/dev/.guidelines.md.kak.YMWRiB @@ -0,0 +1,9 @@ +# File structure + +- `assets/`: Static files (images, CSS, JS) and site templates. +- `config/`: Handle configurations for the server. + - `config.go`: Parses for environment variables and pass down the configurations. + - `proxy_list.go`: Contains the built-in third party image proxy list. +- `core/`: Make requests to Pixiv's server and parses information into structured data. +- `doc/`: Contains documentations for the general user and developers. +- `server/`: diff --git a/doc/dev/guidelines.md b/doc/dev/guidelines.md new file mode 100644 index 0000000..44c7b08 --- /dev/null +++ b/doc/dev/guidelines.md @@ -0,0 +1,18 @@ +This file contains guidelines for code development. + +# File structure + +- `assets/`: Static files (images, CSS, JS) and site templates. +- `config/`: Handle configurations for the server. + - `config.go`: Parses for environment variables and pass down the configurations. + - `proxy_list.go`: Contains the built-in third party image proxy list. +- `core/`: Make requests to Pixiv's server and parses information into structured data. +- `doc/`: Contains documentations for the general user and developers. +- `server/`: The web server. + - `audit/`: Audit requests made by PixivFE to external APIs. + - `handlers/`: Contains middlewares for logging, rate limiting, error handling, etc. + - `proxy_checker/`: The image proxy checker. + - `routes/`: Routes handling. Pages will be rendered here. + - `session/`: Handles user's options. + - `template/`: Core template renderer and template functions. + - `utils/`: Other utilities.