This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
6b7dcba
commit 8d138c2
Showing
47 changed files
with
173 additions
and
124 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -33,6 +33,6 @@ | |
"@sirherobrine23/extends": "3.6.10" | ||
}, | ||
"workspaces": [ | ||
"../*" | ||
"../extends" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
"@types/tar-stream": "^2.2.2" | ||
}, | ||
"workspaces": [ | ||
"../*" | ||
"../descompress", | ||
"../http" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -41,6 +41,9 @@ | |
"@types/tar-stream": "^2.2.2" | ||
}, | ||
"workspaces": [ | ||
"../*" | ||
"../ar", | ||
"../decompress", | ||
"../extends", | ||
"../http" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -37,6 +37,6 @@ | |
"@types/tar-stream": "^2.2.2" | ||
}, | ||
"workspaces": [ | ||
"../*" | ||
"../extends" | ||
] | ||
} |
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,6 @@ | ||
{ | ||
"*": { | ||
"type": "png", | ||
"file": "icons/arquivo-windows-11/icons8-arquivo-32.png" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
packages/page_index/default/icons/arquivo-ios-16/icons8-arquivo-100.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
packages/page_index/default/icons/arquivo-ios-16/icons8-arquivo-150.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
packages/page_index/default/icons/arquivo-ios-16/icons8-arquivo-250.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
packages/page_index/default/icons/arquivo-ios-16/icons8-arquivo-50.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
packages/page_index/default/icons/arquivo-ios-16/icons8-arquivo-500.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+694 Bytes
...index/default/icons/arquivo-windows-11/Android/icons8-arquivo-128(-xxxhdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+194 Bytes
...age_index/default/icons/arquivo-windows-11/Android/icons8-arquivo-24(-ldpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+186 Bytes
...age_index/default/icons/arquivo-windows-11/Android/icons8-arquivo-32(-mdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+268 Bytes
...age_index/default/icons/arquivo-windows-11/Android/icons8-arquivo-48(-hdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+308 Bytes
...ge_index/default/icons/arquivo-windows-11/Android/icons8-arquivo-64(-xhdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+478 Bytes
...e_index/default/icons/arquivo-windows-11/Android/icons8-arquivo-96(-xxhdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+186 Bytes
...ages/page_index/default/icons/arquivo-windows-11/iOS/icons8-arquivo-32(@1x).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+308 Bytes
...ages/page_index/default/icons/arquivo-windows-11/iOS/icons8-arquivo-64(@2x).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+478 Bytes
...ages/page_index/default/icons/arquivo-windows-11/iOS/icons8-arquivo-96(@3x).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+694 Bytes
packages/page_index/default/icons/arquivo-windows-11/icons8-arquivo-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.32 KB
packages/page_index/default/icons/arquivo-windows-11/icons8-arquivo-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+186 Bytes
packages/page_index/default/icons/arquivo-windows-11/icons8-arquivo-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.3 KB
packages/page_index/default/icons/arquivo-windows-11/icons8-arquivo-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+308 Bytes
packages/page_index/default/icons/arquivo-windows-11/icons8-arquivo-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+478 Bytes
packages/page_index/default/icons/arquivo-windows-11/icons8-arquivo-96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.08 KB
...ex/default/icons/arquivo-windows-metro/Android/icons8-arquivo-104(-xxxhdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+269 Bytes
..._index/default/icons/arquivo-windows-metro/Android/icons8-arquivo-20(-ldpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+273 Bytes
..._index/default/icons/arquivo-windows-metro/Android/icons8-arquivo-26(-mdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+394 Bytes
..._index/default/icons/arquivo-windows-metro/Android/icons8-arquivo-39(-hdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+486 Bytes
...index/default/icons/arquivo-windows-metro/Android/icons8-arquivo-52(-xhdpi).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+712 Bytes
...ndex/default/icons/arquivo-windows-metro/Android/icons8-arquivo-78(-xxhdpi).png
Oops, something went wrong.
Binary file added
BIN
+273 Bytes
...s/page_index/default/icons/arquivo-windows-metro/iOS/icons8-arquivo-26(@1x).png
Oops, something went wrong.
Binary file added
BIN
+486 Bytes
...s/page_index/default/icons/arquivo-windows-metro/iOS/icons8-arquivo-52(@2x).png
Oops, something went wrong.
Binary file added
BIN
+712 Bytes
...s/page_index/default/icons/arquivo-windows-metro/iOS/icons8-arquivo-78(@3x).png
Oops, something went wrong.
Binary file added
BIN
+1.08 KB
packages/page_index/default/icons/arquivo-windows-metro/icons8-arquivo-104.png
Oops, something went wrong.
Binary file added
BIN
+2.39 KB
packages/page_index/default/icons/arquivo-windows-metro/icons8-arquivo-208.png
Oops, something went wrong.
Binary file added
BIN
+273 Bytes
packages/page_index/default/icons/arquivo-windows-metro/icons8-arquivo-26.png
Oops, something went wrong.
Binary file added
BIN
+486 Bytes
packages/page_index/default/icons/arquivo-windows-metro/icons8-arquivo-52.png
Oops, something went wrong.
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,17 @@ | ||
* { | ||
font-family: sans-serif; | ||
} | ||
svg { | ||
width: 17px; | ||
padding-right: 5px; | ||
} | ||
img { | ||
width: 3%; | ||
} | ||
|
||
tbody tr td a { | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: center; | ||
|
||
} |
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,27 @@ | ||
<html> | ||
<head> | ||
<title>Index of #TITLE</title> | ||
</head> | ||
<style></style> | ||
<body> | ||
<h1 id="dir_title">Index of #DIR</h1> | ||
<hr> | ||
<table id="table_index"> | ||
<col width="800"> | ||
<col width="250"> | ||
<col width="80"> | ||
<tr> | ||
<th>Filename</th> | ||
<th>Last modified</th> | ||
<th>Size</th> | ||
</tr> | ||
</table> | ||
<hr> | ||
<span> | ||
<span style="font-size: 12px"> | ||
<div>generated by <a href="https://github.com/libthinkpad/apindex">Apindex</a></div> | ||
<div>Modified by <a href="https://github.com/Sirherobrine23/coreUtils/tree/main/packages/page_index">Sirherobrine23</a></div> | ||
</span> | ||
</span> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,18 +1,27 @@ | ||
#!/usr/bin/env node | ||
import path from "node:path"; | ||
import { createIndex, defaultIcons } from "./index.js"; | ||
import yargs from "yargs"; | ||
import pageIndex from "./index.js"; | ||
import path from "path"; | ||
|
||
const options = yargs(process.argv.slice(2)).strictOptions().help(false).option("subPath", { | ||
const options = yargs(process.argv.slice(2)).help(true).alias("h", "help").strictOptions().option("rootPage", { | ||
default: "/", | ||
type: "string", | ||
string: true, | ||
alias: "s", | ||
default: "/", | ||
description: "Sub path to index, example in github pages set '/<project-name>' or '/<project-name>/<sub-path>'", | ||
description: "set Root page, use if run to Github pages" | ||
}).option("source", { | ||
type: "string", | ||
string: true, | ||
alias: [ | ||
"src", "s" | ||
], | ||
default: process.cwd(), | ||
description: "Page source." | ||
}).parseSync(); | ||
|
||
// Create index | ||
await pageIndex({ | ||
subPath: options.subPath||"/", | ||
folder: path.resolve(process.cwd(), String(options._.at(-1) ?? "")), | ||
await createIndex(path.resolve(process.cwd(), options.source), { | ||
rootPage: options.rootPage, | ||
icons: defaultIcons, | ||
}).catch(err => { | ||
console.error(err); | ||
process.exit(1); | ||
}); |
Oops, something went wrong.