Skip to content

Commit 74ad1b5

Browse files
committed
(#460) Dist Files
1 parent bf558a9 commit 74ad1b5

6 files changed

Lines changed: 939 additions & 114 deletions

File tree

credits.json

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "choco-theme",
33
"isPrivate": false,
44
"link": "https://github.com/chocolatey/choco-theme",
5-
"licenseLink": "https://github.com/chocolatey/choco-theme/blob/main/LICENSE",
5+
"licenseLink": "",
66
"version": "1.2.3",
77
"dependencies": [
88
{
@@ -57,6 +57,17 @@
5757
}
5858
]
5959
},
60+
{
61+
"name": "@octokit/types",
62+
"link": "https://github.com/octokit/types.ts",
63+
"version": "14.1.0",
64+
"licenses": [
65+
{
66+
"type": "MIT",
67+
"link": ""
68+
}
69+
]
70+
},
6071
{
6172
"name": "@stylistic/eslint-plugin",
6273
"link": "https://github.com/eslint-stylistic/eslint-stylistic",
@@ -93,7 +104,7 @@
93104
{
94105
"name": "@types/node",
95106
"link": "https://github.com/DefinitelyTyped/DefinitelyTyped",
96-
"version": "22.15.32",
107+
"version": "22.15.33",
97108
"licenses": [
98109
{
99110
"type": "MIT",
@@ -280,7 +291,7 @@
280291
{
281292
"name": "html-to-pdfmake",
282293
"link": "https://github.com/Aymkdn/html-to-pdfmake",
283-
"version": "2.5.26",
294+
"version": "2.5.28",
284295
"licenses": [
285296
{
286297
"type": "MIT",
@@ -398,6 +409,17 @@
398409
}
399410
]
400411
},
412+
{
413+
"name": "octokit",
414+
"link": "https://github.com/octokit/octokit.js",
415+
"version": "5.0.3",
416+
"licenses": [
417+
{
418+
"type": "MIT",
419+
"link": ""
420+
}
421+
]
422+
},
401423
{
402424
"name": "pdfmake",
403425
"link": "https://github.com/bpampuch/pdfmake",
@@ -544,7 +566,7 @@
544566
{
545567
"name": "sweetalert2",
546568
"link": "https://github.com/sweetalert2/sweetalert2",
547-
"version": "11.22.0",
569+
"version": "11.22.1",
548570
"licenses": [
549571
{
550572
"type": "MIT",
@@ -554,7 +576,7 @@
554576
},
555577
{
556578
"name": "timeago",
557-
"link": "http://ryan.mcgeary.org/",
579+
"link": "https://github.com/rmm5t/jquery-timeago",
558580
"version": "1.6.7",
559581
"licenses": [
560582
{
@@ -610,7 +632,7 @@
610632
{
611633
"name": "typescript-eslint",
612634
"link": "https://github.com/typescript-eslint/typescript-eslint",
613-
"version": "8.34.1",
635+
"version": "8.35.0",
614636
"licenses": [
615637
{
616638
"type": "MIT",

dist/js/credits.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*!
2+
* choco-theme v1.2.3 (https://github.com/chocolatey/choco-theme#readme)
3+
* Copyright 2020-2024 Chocolatey Software
4+
* Licensed under MIT (https://github.com/chocolatey/choco-theme/blob/main/LICENSE)
5+
*/
6+
(() => {
7+
// js/src/theme-toggle.js
8+
(() => {
9+
const themeDropdownContainers = document.querySelectorAll(".dropdown-theme");
10+
themeDropdownContainers.forEach((dropdownContainer) => {
11+
dropdownContainer.querySelectorAll(".dropdown-toggle").forEach((el) => {
12+
el.addEventListener("hide.bs.dropdown", () => {
13+
document.querySelectorAll("main").forEach((main) => {
14+
main.classList.remove("z-0");
15+
});
16+
});
17+
el.addEventListener("show.bs.dropdown", () => {
18+
document.querySelectorAll("main").forEach((main) => {
19+
main.classList.add("z-0");
20+
});
21+
});
22+
});
23+
});
24+
})();
25+
})();

dist/js/credits.min.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*!
2+
* choco-theme v1.2.3 (https://github.com/chocolatey/choco-theme#readme)
3+
* Copyright 2020-2024 Chocolatey Software
4+
* Licensed under MIT (https://github.com/chocolatey/choco-theme/blob/main/LICENSE)
5+
*/
6+
(()=>{document.querySelectorAll(".dropdown-theme").forEach(r=>{r.querySelectorAll(".dropdown-toggle").forEach(o=>{o.addEventListener("hide.bs.dropdown",()=>{document.querySelectorAll("main").forEach(e=>{e.classList.remove("z-0")})}),o.addEventListener("show.bs.dropdown",()=>{document.querySelectorAll("main").forEach(e=>{e.classList.add("z-0")})})})});})();

dist/js/preview.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
isStatiq: false,
3232
isAstro: true
3333
},
34+
"--boxstarter": {
35+
folder: "boxstarter.org",
36+
port: 5083,
37+
isStatiq: true,
38+
isAstro: false
39+
},
3440
"--ccm": {
3541
folder: "choco-licensed-management-ui",
3642
protocol: "https",
@@ -39,19 +45,19 @@
3945
isAstro: false,
4046
root: "/src/ChocolateySoftware.ChocolateyManagement.Web.Mvc"
4147
},
42-
"--boxstarter": {
43-
folder: "boxstarter.org",
44-
port: 5083,
45-
isStatiq: true,
46-
isAstro: false
47-
},
4848
"--community": {
4949
folder: "community.chocolatey.org",
5050
port: 55881,
5151
isStatiq: false,
5252
isAstro: false,
5353
root: "/chocolatey/Website"
5454
},
55+
"--credits": {
56+
folder: "credits",
57+
port: 5087,
58+
isStatiq: false,
59+
isAstro: true
60+
},
5561
"--design": {
5662
folder: "choco-design-system",
5763
port: 5085,

dist/js/preview.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)