This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package html | |
| import ( | |
| "html/template" | |
| "project/resources/views" | |
| "slices" | |
| "strings" | |
| ) | |
| type Html = *template.Template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io/fs" | |
| "math" | |
| "os" | |
| "path/filepath" | |
| "regexp" | |
| "strconv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![feature(trim_prefix_suffix)] | |
| use std::borrow::Cow; | |
| use walkdir::WalkDir; | |
| use std::fs::File; | |
| use std::io::{Read, Write}; | |
| use std::path::Path; | |
| use chardetng::EncodingDetector; | |
| use encoding_rs::WINDOWS_1251; | |
| use encoding_rs::WINDOWS_1252; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fetch('/shop-front-template-1/public/css/app.css').then(t => t.text()).then(css => { | |
| let classes = {}; | |
| let elements = Array.from(document.querySelectorAll('*')); | |
| for (let i = 0; i < elements.length; i++) { | |
| let element = elements[i] | |
| let classes_ = Array.from(element.classList); | |
| for (let j = 0; j < classes_.length; j++) { | |
| classes[classes_[j]] = true; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @if ($paginator->hasPages()) | |
| <?php | |
| if (sizeof($elements[0]) === 2) { | |
| unset($elements[0][array_key_last($elements[0])]); | |
| } | |
| if (sizeof($elements[4]) === 2) { | |
| unset($elements[4][array_key_first($elements[4])]); | |
| } | |
| ?> |