@amxts/perms 0.1.0 → 0.1.1
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/README.md +6 -1
- package/README.ru.md +6 -1
- package/package.json +1 -1
- package/prebuilt/linux/perms.aot +0 -0
- package/prebuilt/manifest.json +7 -7
- package/prebuilt/windows/perms.aot +0 -0
- package/src/editor.ts +2 -2
- package/src/natives.ts +1 -1
package/README.md
CHANGED
|
@@ -202,7 +202,12 @@ restart, and the page says what it did.
|
|
|
202
202
|
the database's address never leave the server.
|
|
203
203
|
- The editor keeps a session for an hour on amxts's service. To keep them on
|
|
204
204
|
your own, run the store from this package's `store/` folder (a Cloudflare
|
|
205
|
-
Worker) and give its address as `PERMS_EDITOR_URL` in `.env`.
|
|
205
|
+
Worker) and give its address as `PERMS_EDITOR_URL` in `.env`. The link is
|
|
206
|
+
then your store's, and it opens the same page with your store:
|
|
207
|
+
|
|
208
|
+
```
|
|
209
|
+
[perms] Open the editor (an hour): https://perms.myserver.com/editor#k3x9q2mw7a
|
|
210
|
+
```
|
|
206
211
|
|
|
207
212
|
## In place of admin.amxx
|
|
208
213
|
|
package/README.ru.md
CHANGED
|
@@ -202,7 +202,12 @@ perms editor
|
|
|
202
202
|
не покидают сервер.
|
|
203
203
|
- Сессия хранится час на сервисе amxts. Чтобы хранить их у себя, запустите
|
|
204
204
|
хранилище из папки `store/` этого пакета (Cloudflare Worker) и укажите его
|
|
205
|
-
адрес в `PERMS_EDITOR_URL` в `.env`.
|
|
205
|
+
адрес в `PERMS_EDITOR_URL` в `.env`. Тогда ссылка будет вашего хранилища, и
|
|
206
|
+
она откроет ту же страницу с вашим хранилищем:
|
|
207
|
+
|
|
208
|
+
```
|
|
209
|
+
[perms] Open the editor (an hour): https://perms.myserver.com/editor#k3x9q2mw7a
|
|
210
|
+
```
|
|
206
211
|
|
|
207
212
|
## Вместо admin.amxx
|
|
208
213
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amxts/perms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "Permissions and groups for amxts servers in place of admin.amxx: nodes, wildcards, inheritance, temporary grants, a file or MySQL, AMX Mod X's flags for Pawn plugins, and a web editor.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "kukson777",
|
package/prebuilt/linux/perms.aot
CHANGED
|
Binary file
|
package/prebuilt/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 2,
|
|
3
3
|
"module": "@amxts/perms",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"from": {
|
|
6
6
|
"@amxts/core": {
|
|
7
7
|
"version": "0.3.2",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"hash": "fc3b2c2731f6044d4ce8dab8fe1471b4441ad8c9"
|
|
14
14
|
},
|
|
15
15
|
"@amxts/perms": {
|
|
16
|
-
"version": "0.1.
|
|
17
|
-
"hash": "
|
|
16
|
+
"version": "0.1.1",
|
|
17
|
+
"hash": "402a220274a6d2345e49e578c5b4114fe7c57872"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"options": {
|
|
@@ -188,13 +188,13 @@
|
|
|
188
188
|
"systems": {
|
|
189
189
|
"windows": {
|
|
190
190
|
"file": "prebuilt/windows/perms.aot",
|
|
191
|
-
"size":
|
|
192
|
-
"sha256": "
|
|
191
|
+
"size": 1662774,
|
|
192
|
+
"sha256": "a3fea7ea93ba6c784aa4f082559dccecf524c42468aab6c6577150a538d7e478"
|
|
193
193
|
},
|
|
194
194
|
"linux": {
|
|
195
195
|
"file": "prebuilt/linux/perms.aot",
|
|
196
|
-
"size":
|
|
197
|
-
"sha256": "
|
|
196
|
+
"size": 1676986,
|
|
197
|
+
"sha256": "3d1c1e9acac28b6ef560c147ef1d378b141b7e0dd3657751397ae0886d75e4e3"
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
"surface": {
|
|
Binary file
|
package/src/editor.ts
CHANGED
|
@@ -166,8 +166,8 @@ function sessionOf(now: number) {
|
|
|
166
166
|
|
|
167
167
|
/** The page's link for the open session. */
|
|
168
168
|
function link() {
|
|
169
|
-
const
|
|
170
|
-
return `${
|
|
169
|
+
const page = store == DEFAULT_STORE ? PAGE : `${store}/editor`;
|
|
170
|
+
return `${page}#${sessionId}`;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
export function isOpen() {
|
package/src/natives.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as perms from "./index";
|
|
|
8
8
|
import { declare } from "./model";
|
|
9
9
|
import { onChange, refreshAll } from "./players";
|
|
10
10
|
|
|
11
|
-
plugin({ name: "Perms", version: "0.1.
|
|
11
|
+
plugin({ name: "Perms", version: "0.1.1", author: "kukson777", description: "Permissions and groups in place of admin.amxx" });
|
|
12
12
|
|
|
13
13
|
const changed = new Forward<Player>("perms_changed");
|
|
14
14
|
onChange(player => changed.emit(player));
|