Serverless Computing? ????? ??, ?? ? DevOps? ???????. ? ???? CloudFlare Workers? ???? ?? ?? ???? ??????? ???? ?? ?????. ???? ? ???? ????? ??????. ? ???? ? "Repo Hunt"? ?? ??? ???? ??? ?? ?? ?? ????? ?? ?? ?????. ?? ? ???? ???? ??? ? ????.
CloudFlare? ??? ????? ???? CloudFlare Workers? ??? ??? ???? ???? ?? ?? ??? ?????. Wrangler CLI ??? ??, ??? ? ??? ??????. ? ???? "???"???? ???? URL ?? ???? ???????. ?? ??? github [??--github-repo]?? ??? ? ????.
?? ??
Wrangler ?? :
npm install -g @cloudflare/wrangler
??? ???? ???? ? ????? ????.
Wrangler? repo-hunt https://github.com/cloudflare/worker-template-router? ????? CD repo-hunt
??? ???? ? ?? ???? NPM ??? ???? ? ????. Router
???? URL ???? ?????. ?? ? :
// index.js const router = require ( './ router'); addeventListener ( 'fetch', event => { event.respondwith (handlerequest (event.request)); }); ??? ?? handlerequest (??) { ???? { const r = ??? ??? (); r.get ( '/', () => ? ?? ( "Hello, World!")); const resp = r.route (??); resp resp; } catch (err) { ??? ??? ?? (ERR); } }
???? fetch
???? ???? Response
?????. ? ????? ???? ( /
), ?? ?? ( /post
) ? ?? ?? ( /repo
)? ?? ??? ?????.
??? ? ???
???? ( /
) ??? ?? ? ??? ??? ??????. ??? HTML ???? ???????.
// index.js const router = require ( './ router'); const index = require ( './ ???/??'); // ... (index.js? ???) // ???/index.js const ?? = { 'content-type': 'text/html'}; const handler = () => { ??? ??? ????? ( "Hello, World!", {Headers}); }; module.exports = handler;
wrangler preview
???? ???????. ???? ? ??? ???? ?? ????.
// ???/index.js const ?? = { 'content-type': 'text/html'}; const template = require ( '../ templates/index'); // ... (??? ???/index.js) // templates/index.js const ???? = ?? ?? ( './ Layout'); const ??? = () => ???? (`<h1> ?????, ??!</h1> `); module.exports = ???; // templates/layout.js const layout = body =>` $ {body} `;; Module.Exports = ????;
??? ?????? ???? ???? ????? (Bulma CSS? ???? ????).
??? KV?? ??? ???
Workers KV? ??? ?????? ? ?? ???? ?????. ??? (? : repos:${id}
) ? ?? ?? (? : $date
)? ?????. ?? : ??? KV?? ?? ??? ?????.
?? KV ?? :
repo_hunt.put ( "Mystring", "Hello, World!"); // ?? ????? const string = repo_hunt.get ( "mystring"); // ?? ?????
?? ? ?? ??? ????? ???? ?? ????.
// Store/Repo.js const uuid = ?? ( 'uuid/v4'); ??? repo { // ... (Repo ??? ??) } module.exports = repo; // store/day.js const today = () => new date (). tolocaledatestring (); module.exports = { ?? : Async ?? (id) {// ...}, getRepos : Async ?? () {// ...} };
Repo
???? ?? ? ???? ?????. Day
?? ????? ??? ?????.
??? ??? ??
?? (get /post
)? ?? ???? ???? ??? ? ????. ??? /repo
??? ???? ?? :
// ???/create.js const qs = ?? ?? ( 'QS'); const repo = require ( '../ store/repo'); const day = require ( '../ store/day'); // ... (??? ?? ??)
qs
?????? ???? ???? ?? ????, Repo
??? ????, KV? ????, ID? Daily List? ?????.
????? ??? ???
?? ????? ????? ???? ???? ??????.
// ???/index.js // ... (???? ? ??? ???) // templates/index.js // ...
Day
Module? getRepos
??? Repo
??? ?? ?? ????????. ???? ? ???? ??????.
??
??? ?? .dev subdomain :
Wrangler subdomain my-subdomain
?? ???? ?? :
Wrangler Publish
CloudFlare ?? ???? KV ?? ????? ??? ?? ???? ID? wrangler.toml
????????.
[[kv-namespaces]] ??? = "repo_hunt" id = "$ yournamespaceid"
KV ?? ????? wrangler.toml
? ?? ? ? ?? ??????. ?? ????? ?? ??????!
?? ??
? ????? ???? ??????? ??? ?????. ?? ???? ? ? ??, ?? ??? ??? ??? ??? ? ????. ?? ?? ????? ??? ?? ? ??? ???? ??????.
? ??? CloudFlare Workers? ?? ? ?? ???? ?????? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

CSS?? ????? ??? ? ?? ??? ????. 1. HTML ? CSS? ?? ??? ?????? ???? ?? ???? ?? ???? ??????. 2. ?? ??? ??? ?? ???? ???? ?? ?? ??? ?? ?? ??? ??????. 3. ??? ????? ???? JavaScript? ?? ???? ?????? ??? ?????. ? ?? ??? ??? ??? ????? ?? ??, ??, ??? ? ?? ???? ?? ?? ?? ??? ???? ?????.

CSS ???? ??? ? ??? ??? ????? ???? ??? ???? ???? ?? ?? ???? ????? ???????. 1. Flexbox ? ??? ??? ?? ???? ??? ??, ?? : ??? ?? ? ????? ??? ????. 2. Caniuse ?? ?? ?? ??? ??????. 3. -webkit-, -moz-, -ms-, -o- ? ?? ???? ???? ???? ?????. 4. AutoPrefixer? ???? ???? ???? ???? ?? ????. 5. ?? ????? ????? PostCSS? ???? BrowsersList? ??????. 6. ?? ? ???? ???? ?????. 7. Modernizr ?? ??? ??? ????? ??? ? ????. 8. ?? ????? ???? ?? ? ??? ????.

themaindifferencesbetweendisplay : ???, ??, andinline-blockinhtml/cssarelayoutbehavior, spaceusage ? stylingcontrol.1.inlineElementsFlowWithText, do n'tStartonnewlines, ingorewidth/height, andonlyapplyhorizontalpadding/margins —IdealforIneTeTexting

CSS? ?? ?? ??? ??? ??? ???? ???? SVG? ???? ?? ???, ?? ????, ??? ?? ?? ??? ?? ???? ??????. ??? ??? ????. 1. ?, ??, ??? ?? ?? ??? ?? ??? ?????. 2. ?? ?? ? ??? ???? ??? ? ????. 3. ?????? ?? ?? ?? ?? ????? ???? ?? ??? ?? ? ? ????. 4. ???? ???? ??? ??? ??? ????? ?? ? ??? ????. ???? ???? ?? ?? ?? : ? (50pxatcenter) ? ??? ?? ?? : ??? (50%0%, 100 0%, 0%)? ?? ????. ????

??? ?? ???? ???? ??? ??, ?? ??? ??? ? ? ????? ??? ??? ???? ???? ? ? ?? ? ? ????. 1. CSS ?? : ?? ??? ???? ???? ?? ??; 2. ????? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 3. ?? ??? ??? ??? ??? ?? ?? ???? ????????. 4. ??? ????? ??? ???? ?? ? ??? ??? ?? ??? ?? ?? ??? ????? ???? ?? ????.

CSS? ???? ?? ? ???? ???? ??? ?? ??? ?? ?? ?? ? ? ????. 1. Max width : 100% ? ?? : Auto? ???? ???? ??? ????? ???? ??? ??? ? ??????. 2. HTML? SRCSET ? ?? ??? ???? ?? ??? ??? ??? ??? ???????????. 3. ?? ?? ? ?? ??? ???? ??? ??? ? ?? ?????? ??????. ? ??? ?? ???? ?? ???? ???? ???? ????????.

?? ????? CSS ?? ??? ????? ?? ?? ??? ??, ?? ?? ?? ??, Flexbox ? ??? ???? ?? ?? ? ?? CSS ??? ????? ??? ???? ???? ?? ????? ??? ?????. 1. ?? ??? ??? ???? ????. ???? CSSRESET ?? NALLER.CSS? ???? ?? ???? ???? ????. 2. IE? ?? ??? ?? ?? ?? ??? ????. ?? ?? : ?? ? ???? ??? ??? ???? ?? ????. 3. Flexbox ? Grid? Edge Case ?? Old ???? ??? ?????. ? ?? ??? ? AutopRefixer ??; 4. ?? CSS ?? ??? ???? ????. Caniuse? ???? ?? ?????????.

CSS ??? ??? ?? ?? ?? ? ?? ? ?? ??? ?? ????. 1.px? ?? ??? ????? ?? ??? ??? ?? ??? ?????. 2.EM? ?? ????, ?? ?? ??? ??? ?? ?? ???? ??, REM? ?? ??? ???? ? ????? ??? ????? ?????. 3.VW/VH? ?? ? ???? ??? ??? ??? ??????? ?? ???? ?????? ???????. 4. ??? ?? ?? ? ??, ?? ?? ?? ? ??? ???? ???? ???????. ???? ??? ???? ??? ? ?? ??? ???? ? ????.
