@ohos-ports/knights-canvas 0.0.0-stage → 1.3.7-a-beta.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.
Files changed (105) hide show
  1. package/README.md +211 -3
  2. package/assets/fonts/Beam.ttf +0 -0
  3. package/assets/fonts/BrushKing.otf +0 -0
  4. package/assets/fonts/Bryndan-Write.ttf +0 -0
  5. package/assets/fonts/Bult.ttf +0 -0
  6. package/assets/fonts/CubestMedium.otf +0 -0
  7. package/assets/fonts/KeepCalm-Medium.ttf +0 -0
  8. package/assets/fonts/LuckiestGuy-Regular.ttf +0 -0
  9. package/assets/fonts/Norican-Regular.ttf +0 -0
  10. package/assets/fonts/SketchMatch.ttf +0 -0
  11. package/assets/fonts/Uni-Italic.ttf +0 -0
  12. package/assets/fonts/WaghuPersonalUse-qZAn1.otf +0 -0
  13. package/assets/fonts/theboldfont.ttf +0 -0
  14. package/assets/gfx/BrushKing.otf +0 -0
  15. package/assets/gfx/Uni-Italic.ttf +0 -0
  16. package/assets/gfx/built.ttf +0 -0
  17. package/assets/img/1px.png +0 -0
  18. package/assets/img/background.png +0 -0
  19. package/assets/img/default-avatar.png +0 -0
  20. package/assets/img/fortnite/shop/background.png +0 -0
  21. package/assets/img/fortnite/shop/cache/README.md +1 -0
  22. package/assets/img/fortnite/stats/background.png +0 -0
  23. package/assets/img/fortnite/stats/crown.png +0 -0
  24. package/assets/img/fortnite/stats/pc.png +0 -0
  25. package/assets/img/fortnite/stats/psn.png +0 -0
  26. package/assets/img/fortnite/stats/xbl.png +0 -0
  27. package/assets/img/putih.png +0 -0
  28. package/assets/img/rank/boost_bronze.png +0 -0
  29. package/assets/img/rank/boost_diamond.png +0 -0
  30. package/assets/img/rank/boost_gold.png +0 -0
  31. package/assets/img/rank/boost_silver.png +0 -0
  32. package/assets/img/rank/bot_bronze.png +0 -0
  33. package/assets/img/rank/bot_diamond.png +0 -0
  34. package/assets/img/rank/bot_gold.png +0 -0
  35. package/assets/img/rank/bot_silver.png +0 -0
  36. package/assets/img/rank/bubble_bronze.png +0 -0
  37. package/assets/img/rank/bubble_diamond.png +0 -0
  38. package/assets/img/rank/bubble_gold.png +0 -0
  39. package/assets/img/rank/bubble_silver.png +0 -0
  40. package/assets/img/rank/like_bronze.png +0 -0
  41. package/assets/img/rank/like_diamond.png +0 -0
  42. package/assets/img/rank/like_gold.png +0 -0
  43. package/assets/img/rank/like_silver.png +0 -0
  44. package/assets/img/rank/money_bronze.png +0 -0
  45. package/assets/img/rank/money_diamond.png +0 -0
  46. package/assets/img/rank/money_gold.png +0 -0
  47. package/assets/img/rank/money_silver.png +0 -0
  48. package/assets/img/rank/picture_bronze.png +0 -0
  49. package/assets/img/rank/picture_diamond.png +0 -0
  50. package/assets/img/rank/picture_gold.png +0 -0
  51. package/assets/img/rank/picture_silver.png +0 -0
  52. package/assets/img/rank/speaker_bronze.png +0 -0
  53. package/assets/img/rank/speaker_diamond.png +0 -0
  54. package/assets/img/rank/speaker_gold.png +0 -0
  55. package/assets/img/rank/speaker_silver.png +0 -0
  56. package/assets/img/rank/star_bronze.png +0 -0
  57. package/assets/img/rank/star_diamond.png +0 -0
  58. package/assets/img/rank/star_gold.png +0 -0
  59. package/assets/img/rank/star_silver.png +0 -0
  60. package/assets/img/rank/stream_bronze.png +0 -0
  61. package/assets/img/rank/stream_diamond.png +0 -0
  62. package/assets/img/rank/stream_gold.png +0 -0
  63. package/assets/img/rank/stream_silver.png +0 -0
  64. package/index.js +65 -0
  65. package/package.json +40 -4
  66. package/src/Utils.js +245 -0
  67. package/src/fortnite/Shop.js +2325 -0
  68. package/src/fortnite/Stats.js +293 -0
  69. package/src/gfx/Gfx1.js +47 -0
  70. package/src/gfx/Gfx2.js +45 -0
  71. package/src/gfx/Gfx3.js +60 -0
  72. package/src/gfx/Gfx4.js +61 -0
  73. package/src/gfx/Gfx5.js +42 -0
  74. package/src/gfx/Gura.js +37 -0
  75. package/src/greetings/Base.js +150 -0
  76. package/src/greetings/Goodbye.js +11 -0
  77. package/src/greetings/Welcome.js +11 -0
  78. package/src/greetings2/Goodbye2.js +77 -0
  79. package/src/greetings2/Welcome2.js +87 -0
  80. package/src/greetings3/Goodbye2.js +62 -0
  81. package/src/greetings3/Goodbye3.js +60 -0
  82. package/src/greetings3/Welcome3.js +60 -0
  83. package/src/linz/Burn.js +31 -0
  84. package/src/linz/Hacker1.js +76 -0
  85. package/src/linz/Hacker2.js +37 -0
  86. package/src/linz/Hacker3.js +34 -0
  87. package/src/linz/Lick.js +60 -0
  88. package/src/linz/Patrick.js +37 -0
  89. package/src/premium/Bag.js +167 -0
  90. package/src/premium/Gay.js +67 -0
  91. package/src/premium/Ship.js +73 -0
  92. package/src/premium/Spo.js +37 -0
  93. package/src/premium/Up.js +39 -0
  94. package/src/premium/Xnxx.js +46 -0
  95. package/src/premium/sp.html +39 -0
  96. package/src/rank/Rank.js +152 -0
  97. package/src/update/Bonk.js +64 -0
  98. package/src/update/Horny.js +39 -0
  99. package/src/update/Inv.js +133 -0
  100. package/src/update/Inventory.js +125 -0
  101. package/src/update/Jo.js +36 -0
  102. package/src/update/Rank.js +123 -0
  103. package/src/update/Vs.js +57 -0
  104. package/src/update/inv.html +86 -0
  105. package/utils/functions.js +32 -0
package/README.md CHANGED
@@ -1,3 +1,211 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ <p align="center">
2
+ <img width="200" height="200" src="https://i.ibb.co/6gSsmnz/20210830-111316.jpg">
3
+ </p>
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ $ npm install knights-canvas
9
+
10
+ const knights = require("knights-canvas");
11
+ ```
12
+
13
+
14
+ <p align="center">
15
+ <a href="https://github.com/squad-404">
16
+ <img
17
+ src="https://readme-typing-svg.herokuapp.com?size=15&width=280&lines=thank+you+for+using+this+module"
18
+ alt="404"
19
+ />
20
+ </a>
21
+ </p>
22
+
23
+ [![NPM](https://img.shields.io/badge/npm-362a63?style=for-the-badge&logo=npm&logoColor=cyan)](npmjs.com)
24
+
25
+
26
+ ## how to use
27
+
28
+ <!-- Welcome -->
29
+ <details><summary><b>Welcome</b></summary><br>
30
+
31
+ ```js
32
+ const knights = require("knights-canvas");
33
+ const fs = require('fs');
34
+
35
+ const image = await new knights.Welcome()
36
+ .setUsername("UNDEFINED")
37
+ .setGuildName("WIBU NOLEP")
38
+ .setGuildIcon("https://i.ibb.co/G5mJZxs/rin.jpg")
39
+ .setMemberCount("120")
40
+ .setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
41
+ .setBackground("https://i.ibb.co/4YBNyvP/images-76.jpg")
42
+ .toAttachment();
43
+
44
+ data = image.toBuffer();
45
+ await fs.writeFileSync(__path +'/tmp/swelkom.png', data)
46
+
47
+ ```
48
+ #### result
49
+ <img src="https://i.ibb.co/rw00Lwp/welcome.png" height="130"></img>
50
+ </details>
51
+
52
+ <!-- Welcome -->
53
+ <details><summary><b>Welcome2</b></summary><br>
54
+
55
+ ```js
56
+ const knights = require("knights-canvas");
57
+ const fs = require('fs');
58
+
59
+ var image = await new knights.Welcome2()
60
+ .setAvatar("you url pic")
61
+ .setUsername("your name")
62
+ .setBg("background")
63
+ .setGroupname("guild name/groupname")
64
+ .setMember("member count")
65
+ .toAttachment();
66
+
67
+ data = image.toBuffer();
68
+ await fs.writeFileSync(__path +'/tmp/sewelkom2.png', data)
69
+
70
+ ```
71
+
72
+ <img src="https://i.ibb.co/2cyp24K/IMG-20210829-215318-150.jpg" height="130"></img>
73
+ </details>
74
+ <!-- Welcome -->
75
+ <details><summary><b>Rank</b></summary><br>
76
+
77
+ ```js
78
+ const knights = require("knights-canvas");
79
+ const fs = require('fs');
80
+
81
+ const image = await new knights.Rank()
82
+ .setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
83
+ .setUsername("Lingz")
84
+ .setBg("https://i.ibb.co/4YBNyvP/images-76.jpg")
85
+ .setNeedxp("1000")
86
+ .setCurrxp("100")
87
+ .setLevel("6")
88
+ .setRank("https://i.ibb.co/Wn9cvnv/FABLED.png")
89
+ .toAttachment();
90
+
91
+ data = image.toBuffer();
92
+ await fs.writeFileSync(__path +'/tmp/srank.png', data)
93
+
94
+ ```
95
+ #### result
96
+ <img src="https://i.ibb.co/wWBzCNs/MYTHIC.png" height="130"></img>
97
+ </details>
98
+
99
+ <!-- Welcome -->
100
+ <details><summary><b>Level Up</b></summary><br>
101
+
102
+ ```js
103
+ const knights = require("knights-canvas");
104
+ const fs = require('fs');
105
+
106
+ const image = await new knights.Up()
107
+ .setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
108
+ .toAttachment();
109
+
110
+ data = image.toBuffer();
111
+ await fs.writeFileSync(__path +'/tmp/slevelup.png', data)
112
+
113
+ ```
114
+ #### result
115
+ <img src="https://i.ibb.co/g91Hz7W/levelup.png" height="100"></img>
116
+ </details>
117
+
118
+ #### update
119
+
120
+ <!-- Maker -->
121
+ <details><summary><b>Maker</b></summary><br>
122
+
123
+ #### Horny
124
+
125
+ ```js
126
+ const knights = require("knights-canvas");
127
+ const fs = require('fs');
128
+ const image = await new knights.Horny()
129
+ .setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
130
+ .toBuild();
131
+ data = image.toBuffer();
132
+ await fs.writeFileSync(__path +'/tmp/horny', data)
133
+ ```
134
+ #### result
135
+ <img src="https://i.ibb.co/dQChtfB/Horny.png" height="240"></img>
136
+
137
+ #### Jojo
138
+
139
+ ```js
140
+ const knights = require("knights-canvas");
141
+ const fs = require('fs');
142
+ const image = await new knights.Jo()
143
+ .setImage("https://i.ibb.co/xG8L4mz/images.jpg")
144
+ .toBuild();
145
+ data = image.toBuffer();
146
+ await fs.writeFileSync(__path +'/tmp/jojo.png', data)
147
+ ```
148
+ #### result
149
+ <img src="https://raw.githubusercontent.com/Lingz-ui/data-myBot/main/1635996035651.png" height="170"></img>
150
+
151
+ #### Patrick
152
+
153
+ ```js
154
+ const knights = require("knights-canvas");
155
+ const fs = require('fs');
156
+ const image = await new knights.Patrick()
157
+ .setAvatar("https://i.ibb.co/xG8L4mz/images.jpg")
158
+ .toAttachment();
159
+ data = image.toBuffer();
160
+ await fs.writeFileSync(__path +'/tmp/pat.png', data)
161
+ ```
162
+ #### result
163
+ <img src="https://i.ibb.co/TkPQK3N/b5d0a14eb7195ec6f43d0.png" height="200"></img>
164
+
165
+ #### Bonk
166
+
167
+ ```js
168
+ const knights = require("knights-canvas");
169
+ const fs = require('fs');
170
+ const image = await new knights.Bonk()
171
+ .setAvatar1("https://i.ibb.co/G5mJZxs/rin.jpg")
172
+ .setAvatar2("https://i.ibb.co/BZgRzh0/IMG-20210621-WA0000.jpg")
173
+ .toBuild();
174
+ data = image.toBuffer();
175
+ await fs.writeFileSync(__path +'/tmp/bonk.png', data)
176
+ ```
177
+ #### result
178
+ <img src="https://raw.githubusercontent.com/Lingz-ui/data-myBot/main/1635996061640.png" height="170"></img>
179
+
180
+ #### Spongebob Burn
181
+
182
+ ```js
183
+ const knights = require("knights-canvas");
184
+ const fs = require('fs');
185
+ const image = await new knights.Burn()
186
+ .setAvatar("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQwXmOgfrrGKdaGbnisffjJaUM2eU2izUBf3w&usqp=CAU")
187
+ .toAttachment();
188
+ data = image.toBuffer();
189
+ await fs.writeFileSync(__path +'/tmp/burn.png', data)
190
+ ```
191
+ #### result
192
+ <img src="https://i.ibb.co/1RmRL9d/IMG-20211104-105209-488.jpg" height="170"></img>
193
+
194
+
195
+
196
+
197
+ </details>
198
+
199
+
200
+ #### ✉ req ? chat me on
201
+
202
+ [![Telegram](https://img.shields.io/badge/Telegram-362a63?style=for-the-badge&logo=telegram&logoColor=black)](https://t.me/dr_lingz)
203
+
204
+ ## Credits
205
+ ##### thanks my team for the help
206
+ * [`Ling`](https://github.com/squad-404)
207
+ * [`Len`](https://github.com/len-cmd)
208
+ * [`Arya`](https://github.com/Arya-202265)
209
+ * [`Felix`](https://github.com/Felix-502)
210
+ ##### knights-canvas
211
+ ## (^ω^)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ This folder saves the canvas (fortnite shop) a few days to optimize the response time.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/index.js ADDED
@@ -0,0 +1,65 @@
1
+ const Canvas = require("@ohos-ports/canvas");
2
+ // Register Bold font
3
+ Canvas.registerFont(`${__dirname}/assets/fonts/theboldfont.ttf`, { family: "Bold" });
4
+ // Register SketchMatch font
5
+ Canvas.registerFont(`${__dirname}/assets/fonts/SketchMatch.ttf`, { family: "SketchMatch" });
6
+ // Register SketchMatch font
7
+ Canvas.registerFont(`${__dirname}/assets/fonts/LuckiestGuy-Regular.ttf`, { family: "luckiest guy" });
8
+ // Register KeepCalm font
9
+ Canvas.registerFont(`${__dirname}/assets/fonts/KeepCalm-Medium.ttf`, { family: "KeepCalm" });
10
+ Canvas.registerFont(`${__dirname}/assets/fonts/CubestMedium.otf`, { family: "CubestMedium" });
11
+ Canvas.registerFont(`${__dirname}/assets/fonts/Uni-Italic.ttf`, { family: "Unitalic" });
12
+ Canvas.registerFont(`${__dirname}/assets/fonts/Bult.ttf`, { family: "Built" });
13
+ Canvas.registerFont(`${__dirname}/assets/fonts/Beam.ttf`, { family: "Beam" });
14
+ Canvas.registerFont(`${__dirname}/assets/fonts/BrushKing.otf`, { family: "brush" });
15
+ Canvas.registerFont(`${__dirname}/assets/fonts/Bryndan-Write.ttf`, { family: "Bryndan" });
16
+ Canvas.registerFont(`${__dirname}/assets/fonts/Norican-Regular.ttf`, { family: "Norican-Regular" });
17
+ Canvas.registerFont(`${__dirname}/assets/fonts/WaghuPersonalUse-qZAn1.otf`, { family: "Waghu" });
18
+
19
+
20
+
21
+
22
+
23
+ module.exports.Base = require('./src/greetings/Base');
24
+ module.exports.Lickanime = require('./src/linz/Lick');
25
+ module.exports.Burn = require('./src/linz/Burn');
26
+ module.exports.Welcome = require('./src/greetings/Welcome');
27
+ module.exports.Rank = require('./src/rank/Rank');
28
+ module.exports.Hacker1 = require('./src/linz/Hacker1');
29
+ module.exports.Hacker2 = require('./src/linz/Hacker2');
30
+ module.exports.Hacker3 = require('./src/linz/Hacker3');
31
+ module.exports.Patrick = require('./src/linz/Patrick');
32
+ module.exports.Spo = require('./src/premium/Spo');
33
+ module.exports.Goodbye = require('./src/greetings/Goodbye');
34
+ module.exports.Up = require('./src/premium/Up');
35
+ module.exports.Inv = require('./src/update/Inv');
36
+ module.exports.Horny = require('./src/update/Horny');
37
+ module.exports.Vs = require('./src/update/Vs');
38
+ module.exports.Bonk = require('./src/update/Bonk');
39
+ module.exports.Jo = require('./src/update/Jo');
40
+ //welcome
41
+ module.exports.Goodbye2 = require('./src/greetings2/Goodbye2');
42
+ module.exports.Goodbye3 = require('./src/greetings3/Goodbye3');
43
+ module.exports.Welcome2 = require('./src/greetings2/Welcome2');
44
+ module.exports.Welcome3 = require('./src/greetings3/Welcome3');
45
+ //gfx
46
+ module.exports.Gura = require('./src/gfx/Gura');
47
+ module.exports.Gfx1 = require('./src/gfx/Gfx1');
48
+ module.exports.Gfx2 = require('./src/gfx/Gfx2');
49
+ module.exports.Gfx3 = require('./src/gfx/Gfx3');
50
+ module.exports.Gfx4 = require('./src/gfx/Gfx4');
51
+ module.exports.Gfx5 = require('./src/gfx/Gfx5');
52
+ //MyBot
53
+ module.exports.Bag = require('./src/premium/Bag');
54
+ module.exports.Xnxx = require('./src/premium/Xnxx');
55
+ module.exports.Ship = require('./src/premium/Ship');
56
+ module.exports.Gay = require('./src/premium/Gay');
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@ohos-ports/knights-canvas",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.3.7-a-beta.2",
4
+ "description": "hello world(>////<) — OpenHarmony arm64 port (canvas runtime swapped to @ohos-ports/canvas prebuilt)",
5
+ "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/ohos-ports/ohos-ports.git",
9
+ "directory": "ports/knights-canvas/1.3.7-a"
10
+ },
11
+ "keywords": [
12
+ "canvas",
13
+ "canvas discord",
14
+ "canvas-discord",
15
+ "discord-canvas",
16
+ "discord canvas",
17
+ "djs",
18
+ "djs bot",
19
+ "bot discord",
20
+ "discord",
21
+ "html5",
22
+ "discord js",
23
+ "herokuapp",
24
+ "knights canvas",
25
+ "squad 404",
26
+ "openharmony",
27
+ "harmonyos",
28
+ "ohos-ports"
29
+ ],
30
+ "author": "squad404",
31
+ "license": "ISC",
32
+ "bugs": {
33
+ "url": "https://github.com/ohos-ports/ohos-ports/issues"
34
+ },
35
+ "homepage": "https://github.com/ohos-ports/ohos-ports#readme",
36
+ "dependencies": {
37
+ "fortnite-9812": "^1.0.4",
38
+ "fortnite": "^4.3.2",
39
+ "moment": "^2.29.1",
40
+ "@ohos-ports/canvas": "2.11.2-beta.2"
41
+ }
42
+ }