-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
209 additions
and
118 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo/DemoIcons.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"Demo": { | ||
"icon-1": 1, | ||
"icon-2": 3, | ||
"icon-3": 2 | ||
} | ||
} |
219 changes: 110 additions & 109 deletions
219
demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo/DemoSettings.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,114 @@ | ||
{ | ||
"Demo": { | ||
"Domain": "https://www.vegalya.com/", | ||
"PartialsDir": "~/Shared/Partials", | ||
"LayoutDir": "~/Shared/Layout", | ||
"ExceptionHandler": "/Error", | ||
"MapFallbackPage": "/_Host", | ||
"LocaleSwitchEnabled": true, | ||
"ModeSwitchEnabled": true, | ||
"LocaleDefault": "en-GB", | ||
"SvgDir": "media/icons/", | ||
"ModeDefault": "system", | ||
"AssetsDir": "assets/", | ||
"PagesDir": "~/Pages", | ||
"Direction": "rtl", | ||
"Preloader": true, | ||
"Major": 1, | ||
"Minor": 0, | ||
"Build": 1, | ||
"SocialMedia": { | ||
"YouTube": { | ||
"Url": "https://www.youtube.com/@iTaiizor", | ||
"Alt": "YouTube Address", | ||
"Icon": "youtube", | ||
"Line": "<a href='https://www.youtube.com/@iTaiizor'><img src='youtube.svg' alt='YouTube Address' /></a>" | ||
}, | ||
"GitHub": { | ||
"Url": "https://github.com/Taiizor", | ||
"Alt": "GitHub Address", | ||
"Icon": "github", | ||
"Line": "<a href='https://github.com/Taiizor'><img src='github.svg' alt='GitHub Address' /></a>" | ||
} | ||
}, | ||
"Compression": { | ||
"StaticFile": { | ||
"CacheControl": "public, max-age={0}", | ||
"MaxAge": "1.00:00:00", | ||
"Mode": "Compress", | ||
"Change": true, | ||
"Extensions": [ | ||
".jpeg", | ||
".css", | ||
".svg", | ||
".png", | ||
".jpg", | ||
".js" | ||
], | ||
"Headers": { | ||
"Vary": "Accept-Encoding" | ||
"Demo": { | ||
"Domain": "https://www.vegalya.com/", | ||
"PartialsDir": "~/Shared/Partials", | ||
"LayoutDir": "~/Shared/Layout", | ||
"ExceptionHandler": "/Error", | ||
"MapFallbackPage": "/_Host", | ||
"LocaleSwitchEnabled": true, | ||
"ModeSwitchEnabled": true, | ||
"LocaleDefault": "en-GB", | ||
"SvgDir": "media/icons/", | ||
"ModeDefault": "system", | ||
"AssetsDir": "assets/", | ||
"PagesDir": "~/Pages", | ||
"IconType": "solid", | ||
"Direction": "rtl", | ||
"Preloader": true, | ||
"Major": 1, | ||
"Minor": 0, | ||
"Build": 1, | ||
"SocialMedia": { | ||
"YouTube": { | ||
"Url": "https://www.youtube.com/@iTaiizor", | ||
"Alt": "YouTube Address", | ||
"Icon": "youtube", | ||
"Line": "<a href='https://www.youtube.com/@iTaiizor'><img src='youtube.svg' alt='YouTube Address' /></a>" | ||
}, | ||
"GitHub": { | ||
"Url": "https://github.com/Taiizor", | ||
"Alt": "GitHub Address", | ||
"Icon": "github", | ||
"Line": "<a href='https://github.com/Taiizor'><img src='github.svg' alt='GitHub Address' /></a>" | ||
} | ||
}, | ||
"Compression": { | ||
"StaticFile": { | ||
"CacheControl": "public, max-age={0}", | ||
"MaxAge": "1.00:00:00", | ||
"Mode": "Compress", | ||
"Change": true, | ||
"Extensions": [ | ||
".jpeg", | ||
".css", | ||
".svg", | ||
".png", | ||
".jpg", | ||
".js" | ||
], | ||
"Headers": { | ||
"Vary": "Accept-Encoding" | ||
} | ||
}, | ||
"Response": { | ||
"EnableHttps": true, | ||
"MimeTypes": [ | ||
"*/*" | ||
] | ||
}, | ||
"Level": { | ||
"Deflate": "Optimal", | ||
"Brotli": "Optimal", | ||
"Gzip": "Optimal" | ||
} | ||
}, | ||
"ThirdParty": { | ||
"GoogleAnalytics": "NULL", | ||
"GoogleAdsense": "NULL", | ||
"YandexMetrika": "NULL" | ||
}, | ||
"Languages": { | ||
"DefaultFlag": "european-union", | ||
"CookieName": "Factorial", | ||
"UnknownName": "Unknown", | ||
"UnknownLang": "xy-XY", | ||
"CookieExpires": 30, | ||
"ActiveLang": [ | ||
"en-GB" | ||
], | ||
"List": { | ||
"English": { | ||
"en-GB": "united-kingdom" | ||
} | ||
} | ||
}, | ||
"Assets": { | ||
"Favicon": "favicon.png", | ||
"Manifest": "manifest.json", | ||
"Version": true, | ||
"Font": [ | ||
"https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700,800,900" | ||
], | ||
"Css": [ | ||
"css/bootstrap/bootstrap.min.css", | ||
"css/site.css" | ||
], | ||
"Js": [ | ||
"js/jquery.min.js" | ||
] | ||
}, | ||
"Vendors": { | ||
"special-library": { | ||
"Font": [ | ||
"plugins/custom/special-library/special-library.ttf" | ||
], | ||
"Css": [ | ||
"plugins/custom/special-library/special-library.css" | ||
], | ||
"Js": [ | ||
"plugins/custom/special-library/special-library.js" | ||
] | ||
} | ||
} | ||
}, | ||
"Response": { | ||
"EnableHttps": true, | ||
"MimeTypes": [ | ||
"*/*" | ||
] | ||
}, | ||
"Level": { | ||
"Deflate": "Optimal", | ||
"Brotli": "Optimal", | ||
"Gzip": "Optimal" | ||
} | ||
}, | ||
"ThirdParty": { | ||
"GoogleAnalytics": "NULL", | ||
"GoogleAdsense": "NULL", | ||
"YandexMetrika": "NULL" | ||
}, | ||
"Languages": { | ||
"DefaultFlag": "european-union", | ||
"CookieName": "Factorial", | ||
"UnknownName": "Unknown", | ||
"UnknownLang": "xy-XY", | ||
"CookieExpires": 30, | ||
"ActiveLang": [ | ||
"en-GB" | ||
], | ||
"List": { | ||
"English": { | ||
"en-GB": "united-kingdom" | ||
} | ||
} | ||
}, | ||
"Assets": { | ||
"Favicon": "favicon.png", | ||
"Manifest": "manifest.json", | ||
"Version": true, | ||
"Font": [ | ||
"https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700,800,900" | ||
], | ||
"Css": [ | ||
"css/bootstrap/bootstrap.min.css", | ||
"css/site.css" | ||
], | ||
"Js": [ | ||
"js/jquery.min.js" | ||
] | ||
}, | ||
"Vendors": { | ||
"special-library": { | ||
"Font": [ | ||
"plugins/custom/special-library/special-library.ttf" | ||
], | ||
"Css": [ | ||
"plugins/custom/special-library/special-library.css" | ||
], | ||
"Js": [ | ||
"plugins/custom/special-library/special-library.js" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.Extensions.Configuration; | ||
|
||
namespace Taiizor.Starterkit.Extension | ||
{ | ||
public class ThemeIcons | ||
{ | ||
public static SortedDictionary<string, int> Config { get; set; } = []; | ||
|
||
public static void Init(string Path, string Key) | ||
{ | ||
IConfiguration Configuration = new ConfigurationBuilder() | ||
.AddJsonFile(Path) | ||
.Build(); | ||
|
||
Init(Configuration, Key); | ||
} | ||
|
||
public static void Init(IConfiguration Configuration, string Key) | ||
{ | ||
Config = Configuration.GetSection(Key).Get<SortedDictionary<string, int>>() ?? Config; | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.