stack-analyze 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/api/webApis.js +1 -5
- package/cli.js +12 -0
- package/functions/deezer.js +5 -2
- package/functions/download.js +1 -1
- package/hash/infoTools.js +1 -1
- package/hash/wallpaperSelect.js +20 -0
- package/package.json +1 -1
- package/utils.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
stack-analyze all version and notable changes, fixed, remove and new additions in code.
|
|
4
4
|
|
|
5
5
|
## generation 4 (ver. 1.3.0 - )
|
|
6
|
+
|
|
7
|
+
### version 1.3.2
|
|
8
|
+
#### Added
|
|
9
|
+
- title for stack menu tools
|
|
10
|
+
|
|
11
|
+
### version 1.3.1
|
|
12
|
+
#### Added
|
|
13
|
+
- seyyahi2 wallpapers (this pack is from album app)
|
|
14
|
+
#### changed
|
|
15
|
+
- add new view field is total track and id
|
|
16
|
+
|
|
6
17
|
### version 1.3.0
|
|
7
18
|
#### Added
|
|
8
19
|
- deezer search tool
|
package/api/webApis.js
CHANGED
|
@@ -12,11 +12,7 @@ const wappalyzer = new Wappalyzer();
|
|
|
12
12
|
* @param {StrategyOpt} strategy
|
|
13
13
|
*/
|
|
14
14
|
const pagespeedApi = async (url, strategy) => await axios.get("https://www.googleapis.com/pagespeedonline/v5/runPagespeed", {
|
|
15
|
-
params: {
|
|
16
|
-
url,
|
|
17
|
-
key: "AIzaSyBEDaW4FxSZ2s1vz5CdD5Ai6PGZGdAzij0",
|
|
18
|
-
strategy
|
|
19
|
-
}
|
|
15
|
+
params: { url, strategy }
|
|
20
16
|
});
|
|
21
17
|
|
|
22
18
|
export {
|
package/cli.js
CHANGED
|
@@ -34,6 +34,8 @@ const exitCli = () => {
|
|
|
34
34
|
* @returns {Promise<void>}
|
|
35
35
|
*/
|
|
36
36
|
async function webOpts() {
|
|
37
|
+
console.info(colors.yellow(figlet.textSync("web options")));
|
|
38
|
+
|
|
37
39
|
const { web } = await inquirer.prompt({
|
|
38
40
|
type: "list",
|
|
39
41
|
pageSize,
|
|
@@ -52,6 +54,8 @@ async function webOpts() {
|
|
|
52
54
|
* @returns {Promise<void>}
|
|
53
55
|
*/
|
|
54
56
|
async function infoOpts() {
|
|
57
|
+
console.info(colors.yellow(figlet.textSync("info options")));
|
|
58
|
+
|
|
55
59
|
const { info } = await inquirer.prompt({
|
|
56
60
|
type: "list",
|
|
57
61
|
pageSize,
|
|
@@ -70,6 +74,8 @@ async function infoOpts() {
|
|
|
70
74
|
* @returns {Promise<void>}
|
|
71
75
|
*/
|
|
72
76
|
async function queryOpts() {
|
|
77
|
+
console.info(colors.yellow(figlet.textSync("query options")));
|
|
78
|
+
|
|
73
79
|
const { query } = await inquirer.prompt({
|
|
74
80
|
type: "list",
|
|
75
81
|
pageSize,
|
|
@@ -88,6 +94,8 @@ async function queryOpts() {
|
|
|
88
94
|
* @returns {void}
|
|
89
95
|
*/
|
|
90
96
|
async function wallpapersOpts() {
|
|
97
|
+
console.info(colors.yellow(figlet.textSync("wallpapers")));
|
|
98
|
+
|
|
91
99
|
const { wallpaper } = await inquirer.prompt({
|
|
92
100
|
type: "list",
|
|
93
101
|
pageSize,
|
|
@@ -106,6 +114,8 @@ async function wallpapersOpts() {
|
|
|
106
114
|
* @returns {Promise<void>}
|
|
107
115
|
*/
|
|
108
116
|
async function utilityOpts() {
|
|
117
|
+
console.info(colors.yellow(figlet.textSync("utility options")));
|
|
118
|
+
|
|
109
119
|
const { utility } = await inquirer.prompt({
|
|
110
120
|
type: "list",
|
|
111
121
|
pageSize,
|
|
@@ -124,6 +134,8 @@ async function utilityOpts() {
|
|
|
124
134
|
* @returns {Promise<void>}
|
|
125
135
|
*/
|
|
126
136
|
async function aboutOpts() {
|
|
137
|
+
console.info(colors.yellow(figlet.textSync("About Menu")));
|
|
138
|
+
|
|
127
139
|
const { about } = await inquirer.prompt({
|
|
128
140
|
type: "list",
|
|
129
141
|
pageSize,
|
package/functions/deezer.js
CHANGED
|
@@ -19,11 +19,14 @@ export default async function deezer(q) {
|
|
|
19
19
|
);
|
|
20
20
|
|
|
21
21
|
const results = data.data.map(({
|
|
22
|
-
title, record_type,
|
|
22
|
+
id, title, record_type,
|
|
23
|
+
explicit_lyrics, artist, nb_tracks
|
|
23
24
|
}) => ({
|
|
25
|
+
id,
|
|
24
26
|
artist: artist.name,
|
|
25
27
|
title,
|
|
26
|
-
record_type,
|
|
28
|
+
type: record_type,
|
|
29
|
+
num_tracks: nb_tracks,
|
|
27
30
|
lyrics_content: explicit_lyrics ? "explicit" : "clean"
|
|
28
31
|
}));
|
|
29
32
|
|
package/functions/download.js
CHANGED
|
@@ -10,7 +10,7 @@ import { stackSave } from "../utils.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* sol, moon wallpapers downloader
|
|
12
12
|
* @async
|
|
13
|
-
* @param {"sol-moon" | "dimensions"} opt
|
|
13
|
+
* @param {"sol-moon" | "dimensions" | "seyyahi"} opt
|
|
14
14
|
* @param {string} filename
|
|
15
15
|
* @returns {Promise<void>}
|
|
16
16
|
*/
|
package/hash/infoTools.js
CHANGED
package/hash/wallpaperSelect.js
CHANGED
|
@@ -50,6 +50,26 @@ const wallpaperSelect = {
|
|
|
50
50
|
setTimeout(refreshCallback, 5000);
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
+
},
|
|
54
|
+
seyyahi2(refreshCallback, alternativeCallback) {
|
|
55
|
+
const seyyahiWallpapers = [...Array(14).keys()]
|
|
56
|
+
.map(i => `seyyahi2-wallpaper${i + 1}.jpg`);
|
|
57
|
+
|
|
58
|
+
inquirer.prompt([
|
|
59
|
+
{
|
|
60
|
+
type: "list",
|
|
61
|
+
name: "seyyahi2",
|
|
62
|
+
message,
|
|
63
|
+
choices: [...seyyahiWallpapers, backMenu]
|
|
64
|
+
}
|
|
65
|
+
])
|
|
66
|
+
.then(({ seyyahi2 }) => {
|
|
67
|
+
if(seyyahi2 === backMenu) {
|
|
68
|
+
alternativeCallback();
|
|
69
|
+
} else {
|
|
70
|
+
wallpaperDownload("seyyahi2", seyyahi2);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
53
73
|
}
|
|
54
74
|
};
|
|
55
75
|
|
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -33,7 +33,7 @@ const menuUtilityOpts = [
|
|
|
33
33
|
"hardware", "password", returnMainOpts
|
|
34
34
|
];
|
|
35
35
|
|
|
36
|
-
const menuWallpaperOpts = ["solMoon", "dimensions", returnMainOpts];
|
|
36
|
+
const menuWallpaperOpts = ["solMoon", "dimensions", "seyyahi2", returnMainOpts];
|
|
37
37
|
|
|
38
38
|
const menuHardwareOpts = [
|
|
39
39
|
"cpuInfo", "ramMemInfo", "osDetail", "diskInfo",
|