save-ukraine 0.12.0 β 0.15.0
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 +144 -25
- package/assets/Flag_of_Ukraine.svg +1 -4
- package/assets/graphic/war1.jpg +0 -0
- package/assets/social.png +0 -0
- package/assets/wallpaper.png +0 -0
- package/assets/with-drops-of-blood.png +0 -0
- package/dist/esm/main.js +154 -16
- package/dist/esm/main.js.map +1 -1
- package/dist/esm/typings/Ukraine.d.ts +6 -0
- package/dist/esm/typings/main.d.ts +2 -0
- package/dist/esm/typings/options.d.ts +25 -1
- package/dist/esm/typings/randomItem.d.ts +5 -0
- package/dist/umd/main.js +162 -20
- package/dist/umd/main.js.map +1 -1
- package/dist/umd/typings/Ukraine.d.ts +6 -0
- package/dist/umd/typings/main.d.ts +2 -0
- package/dist/umd/typings/options.d.ts +25 -1
- package/dist/umd/typings/randomItem.d.ts +5 -0
- package/package.json +1 -1
- package/tslint.json +5 -2
package/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# π¦ Stop war on Ukraine π¨
|
2
2
|
|
3
|
-
As a libertarian and programmer
|
3
|
+
**As a libertarian and programmer,** I would never think that I would someday work on a piece of software that would go against free access to any service from any corner of the world.
|
4
4
|
|
5
5
|
But unfortunately, the situation has changed.
|
6
6
|
|
@@ -14,9 +14,15 @@ We can not just close our eyes and just provide all services and benefits to the
|
|
14
14
|
|
15
15
|
---
|
16
16
|
|
17
|
+
I don't want to punish the Russian people as a whole. As a citizen of Prague, I have few Russian friends and this definitely won't change. I believe most Russians do not support the politics of their state and especially this cruel war. But unfortunately, economic pressure is now one of the less bad solutions. And every ruble paid on taxes for the current Russian government means more money for killing innocent people.
|
18
|
+
|
19
|
+
---
|
20
|
+
|
17
21
|
I have created a simple way how to do it.
|
18
22
|
|
19
|
-
For the users **from other places, nothing happens
|
23
|
+
For the users **from other places, nothing happens or π¦ you can optionally place the ribbon with Ukraine flag π¨**. The script is tiny to load and insignificant. If the visitor is from **Russia or Belarus** _(detected by system language)_ this **message will appear**:
|
24
|
+
|
25
|
+
https://github.com/hejny/Ukraine
|
20
26
|
|
21
27
|
<!--Badges-->
|
22
28
|
<!--β οΈWARNING: This section was generated by https://github.com/hejny/batch-project-editor/blob/main/src/workflows/800-badges/badges.ts so every manual change will be overwritten.-->
|
@@ -39,10 +45,10 @@ There are several ways how to add this to your page:
|
|
39
45
|
|
40
46
|
### π Via HTML script tag
|
41
47
|
|
42
|
-
<!-- TODO: Auto update of version v0.
|
48
|
+
<!-- TODO: Auto update of version v0.13.0 -->
|
43
49
|
|
44
50
|
```html
|
45
|
-
<script src="https://cdn.jsdelivr.net/npm/save-ukraine@0.
|
51
|
+
<script src="https://cdn.jsdelivr.net/npm/save-ukraine@0.15.0/dist/umd/main.js"></script>
|
46
52
|
<script>
|
47
53
|
Ukraine.save();
|
48
54
|
</script>
|
@@ -69,41 +75,98 @@ Ukraine.save();
|
|
69
75
|
|
70
76
|
_Note: This library is written in TypeScript so [options](./src/options.ts) are fully typed._
|
71
77
|
|
72
|
-
|
73
|
-
### π Wordpress, ...
|
74
|
-
Feel free to add more methods of importing
|
75
|
-
-->
|
78
|
+
### βοΈ React
|
76
79
|
|
77
|
-
|
80
|
+
First, you need to install [save-ukraine package from NPM](https://www.npmjs.com/package/save-ukraine):
|
78
81
|
|
79
|
-
|
82
|
+
```bash
|
83
|
+
npm i save-ukraine
|
84
|
+
```
|
80
85
|
|
81
|
-
|
86
|
+
And then use:
|
82
87
|
|
83
|
-
|
88
|
+
```typescript
|
89
|
+
import Ukraine from 'save-ukraine';
|
90
|
+
<>
|
91
|
+
<div
|
92
|
+
ref={(element) => {
|
93
|
+
if (element) {
|
94
|
+
Ukraine.save({ element });
|
95
|
+
}
|
96
|
+
}}
|
97
|
+
/>
|
98
|
+
{/*...Here will be rest of your app...*/}
|
99
|
+
</>,
|
100
|
+
document.getElementById('root'),
|
101
|
+
);
|
102
|
+
```
|
103
|
+
|
104
|
+
π Wordpress
|
105
|
+
|
106
|
+
Install [Simple Custom CSS and JS](https://cs.wordpress.org/plugins/custom-css-js/) WordPress plugin and add the following code as the `Custom HTML`:
|
107
|
+
|
108
|
+
```html
|
109
|
+
<script src="https://cdn.jsdelivr.net/npm/save-ukraine@0.15.0/dist/umd/main.js"></script>
|
110
|
+
<script>
|
111
|
+
Ukraine.save();
|
112
|
+
</script>
|
113
|
+
```
|
84
114
|
|
85
115
|
<!--
|
116
|
+
TODO: Maybe make custom WordPress plugin:
|
117
|
+
@see https://developer.wordpress.org/plugins/wordpress-org/
|
118
|
+
-->
|
86
119
|
|
87
|
-
|
120
|
+
<!--
|
121
|
+
Note: Feel free to add more methods of importing
|
122
|
+
-->
|
88
123
|
|
89
|
-
|
124
|
+
## π§© Scenarios to use
|
90
125
|
|
91
|
-
|
92
|
-
|
93
|
-
|
126
|
+
### ποΈ I just want to add ribbon
|
127
|
+
|
128
|
+
```html
|
129
|
+
<script src="https://cdn.jsdelivr.net/npm/save-ukraine@0.15.0/dist/umd/main.js"></script>
|
130
|
+
<script>
|
131
|
+
Ukraine.save({
|
132
|
+
countries: [
|
133
|
+
/* Make this list empty */
|
134
|
+
],
|
135
|
+
ribbon: 'TOP_LEFT',
|
136
|
+
});
|
137
|
+
</script>
|
138
|
+
```
|
94
139
|
|
95
|
-
|
96
|
-
Ukraine.default(`
|
140
|
+
_Or use other method of installation see above._
|
97
141
|
|
98
|
-
|
142
|
+
### β I want that users can cancel the message
|
99
143
|
|
100
|
-
|
101
|
-
|
144
|
+
```html
|
145
|
+
<script src="https://cdn.jsdelivr.net/npm/save-ukraine@0.15.0/dist/umd/main.js"></script>
|
146
|
+
<script>
|
147
|
+
Ukraine.save({
|
148
|
+
isCancelable: true,
|
149
|
+
});
|
102
150
|
</script>
|
151
|
+
```
|
103
152
|
|
104
|
-
|
153
|
+
_Or use other method of installation see above._
|
105
154
|
|
106
|
-
|
155
|
+
### πΌοΈ I do not want to include cruel graphic and blood
|
156
|
+
|
157
|
+
```html
|
158
|
+
<script src="https://cdn.jsdelivr.net/npm/save-ukraine@0.15.0/dist/umd/main.js"></script>
|
159
|
+
<script>
|
160
|
+
Ukraine.save({
|
161
|
+
isBloodIncluded: false,
|
162
|
+
isGraphicIncluded: false,
|
163
|
+
});
|
164
|
+
</script>
|
165
|
+
```
|
166
|
+
|
167
|
+
_Or use other method of installation see above._
|
168
|
+
|
169
|
+
### π Other customization
|
107
170
|
|
108
171
|
You can customize what will be shown.
|
109
172
|
Here are all the [options](./src/options.ts). If you have some idea feel free to contribute via pull request.
|
@@ -111,7 +174,63 @@ Here are all the [options](./src/options.ts). If you have some idea feel free to
|
|
111
174
|
```javascript
|
112
175
|
Ukraine.save({
|
113
176
|
text: 'Stop the war with <b>Ukraine</b>',
|
114
|
-
|
177
|
+
countries: [/* Russia and Belarus */ 'ru', 'by'],
|
178
|
+
moreInfoUrl: `https://github.com/hejny/Ukraine`,
|
179
|
+
ribbon: 'TOP_LEFT',
|
180
|
+
isInConsole: true,
|
115
181
|
isBloodIncluded: true,
|
182
|
+
isGraphicIncluded: true,
|
183
|
+
isCancelable: true,
|
116
184
|
});
|
117
185
|
```
|
186
|
+
|
187
|
+
## π¨π½βπ» Security
|
188
|
+
|
189
|
+
When you import anything _(not only this script)_ on your page, please do not trust the publisher. Verify the code and **include only the specific version** not the wildcard of every future version.
|
190
|
+
|
191
|
+
## βοΈ FAQ
|
192
|
+
|
193
|
+
Few most common things aggregated from your questions:
|
194
|
+
|
195
|
+
---
|
196
|
+
|
197
|
+
> How do you detect whether the user is or isn't from Russia.
|
198
|
+
|
199
|
+
We are capturing `navigator.language` from the browser. [Full implementation is here](https://github.com/hejny/Ukraine/blob/main/src/getUserLanguage.ts).
|
200
|
+
|
201
|
+
---
|
202
|
+
|
203
|
+
> How do you block the page?
|
204
|
+
|
205
|
+
I am putting a fixed full-screen div with a big z-index + restricting overflow and pointer-events for the rest of the page.
|
206
|
+
|
207
|
+
---
|
208
|
+
|
209
|
+
> This restriction can be easily avoided!
|
210
|
+
|
211
|
+
Yes and no. For litter more skilled user on the desktop, it can be. For most of the users not.
|
212
|
+
They can also switch their language but my goal is not to be bulletproof 100% blocking. But just to show this important message for Russian citizens.
|
213
|
+
|
214
|
+
---
|
215
|
+
|
216
|
+
> This will also restrict Russian-speaking people from Ukraine?
|
217
|
+
|
218
|
+
Unfortunately, probably yes. Please do not place this for some essential services for Ukrainian people which can help them survive the war, like news, instructions, maps, ...
|
219
|
+
There is no way how to perfectly detect who the user is and **there will be always false positives and false negatives**.
|
220
|
+
|
221
|
+
But if you have some better solution for this issue, [please share with me](https://github.com/hejny/Ukraine/issues/13).
|
222
|
+
|
223
|
+
---
|
224
|
+
|
225
|
+
> It makes no sense to block western information from Russian people!
|
226
|
+
|
227
|
+
**Definitely!** If you are maintaining news and telling truth about the war / putin, please do not block it for the Russian people.
|
228
|
+
This tool should be used as part of economic and social sanctions to Russia but made from the bottom. So, if you have some professional tool, some war/politics unrelated topic, unrelated blog, e-shop, crypto tool... you can use it as your personal economic sanctions.
|
229
|
+
|
230
|
+
Not to punish Russian people but to increase the efficiency of economic sanctions and help to get rid of the current Kremlin regime.
|
231
|
+
|
232
|
+
---
|
233
|
+
|
234
|
+
> Can I change this and that?
|
235
|
+
|
236
|
+
**Definitely!** Please make a [pull request](https://github.com/hejny/Ukraine/pulls).
|
@@ -1,4 +1 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="800">
|
2
|
-
<rect width="1200" height="800" fill="#005BBB"/>
|
3
|
-
<rect width="1200" height="400" y="400" fill="#FFD500"/>
|
4
|
-
</svg>
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="800"><rect width="1200" height="800" fill="#005BBB"/><rect width="1200" height="400" y="400" fill="#FFD500"/></svg>
|
Binary file
|
Binary file
|
package/assets/wallpaper.png
CHANGED
Binary file
|
Binary file
|
package/dist/esm/main.js
CHANGED
@@ -62,6 +62,18 @@ function __generator(thisArg, body) {
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
|
65
|
+
function __values(o) {
|
66
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
67
|
+
if (m) return m.call(o);
|
68
|
+
if (o && typeof o.length === "number") return {
|
69
|
+
next: function () {
|
70
|
+
if (o && i >= o.length) o = void 0;
|
71
|
+
return { value: o && o[i++], done: !o };
|
72
|
+
}
|
73
|
+
};
|
74
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
75
|
+
}
|
76
|
+
|
65
77
|
function __read(o, n) {
|
66
78
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
67
79
|
if (!m) return o;
|
@@ -88,26 +100,50 @@ function getUserLanguage() {
|
|
88
100
|
return language;
|
89
101
|
}
|
90
102
|
|
103
|
+
var defaultOptions = {
|
104
|
+
/**
|
105
|
+
* TODO: Add more countries like chechnya
|
106
|
+
*/
|
107
|
+
countries: [/* Russia and Belarus */ 'ru', 'by'],
|
108
|
+
text: "\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u043E\u0439\u043D\u0443 \u0441 <b>\u0423\u043A\u0440\u0430\u0438\u043D\u043E\u0439</b>",
|
109
|
+
/**
|
110
|
+
* TODO: Probbably better default URL
|
111
|
+
*/
|
112
|
+
moreInfoUrl: "https://github.com/hejny/Ukraine",
|
113
|
+
ribbon: 'TOP_LEFT',
|
114
|
+
isInConsole: true,
|
115
|
+
isBloodIncluded: true,
|
116
|
+
isGraphicIncluded: true,
|
117
|
+
isCancelable: false,
|
118
|
+
};
|
119
|
+
|
120
|
+
/**
|
121
|
+
*
|
122
|
+
* @collboard-modules-sdk
|
123
|
+
*/
|
124
|
+
function randomItem() {
|
125
|
+
var items = [];
|
126
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
127
|
+
items[_i] = arguments[_i];
|
128
|
+
}
|
129
|
+
return items[Math.floor(Math.random() * items.length)];
|
130
|
+
}
|
131
|
+
|
91
132
|
var Ukraine = /** @class */ (function () {
|
92
133
|
function Ukraine(options) {
|
93
134
|
// TODO: Split into multiple methods like checkRequirements and init
|
94
135
|
this.options = options;
|
95
136
|
this.scope = 'x' + Math.random().toString().split('.')[1] + '_';
|
96
|
-
|
97
|
-
|
137
|
+
var isBlocking;
|
138
|
+
if (this.options.countries.includes(getUserLanguage())) {
|
139
|
+
isBlocking = this.initBlocking();
|
140
|
+
}
|
141
|
+
else {
|
142
|
+
isBlocking = false;
|
143
|
+
}
|
144
|
+
if (options.ribbon && !isBlocking) {
|
145
|
+
this.initRibbon();
|
98
146
|
}
|
99
|
-
// Note: To suppress main scrollbar if the page has longer content
|
100
|
-
window.document.body.style.setProperty('overflow', 'hidden', 'important');
|
101
|
-
this.options.element.style.zIndex = '999999';
|
102
|
-
this.options.element.style.position = 'fixed';
|
103
|
-
this.options.element.style.top = '0';
|
104
|
-
this.options.element.style.bottom = '0';
|
105
|
-
this.options.element.style.left = '0';
|
106
|
-
this.options.element.style.right = '0';
|
107
|
-
this.options.element.style.backgroundColor = '#ffffff';
|
108
|
-
this.options.element.innerHTML = /* TODO: Use spaceTrim */ "\n <div>\n " + (!this.options.isBloodIncluded
|
109
|
-
? ''
|
110
|
-
: "<img class=\"" + this.scope + "blood\" src=\"" + BLOOD_IMAGE_URL + "\" alt=\"Blood\"/>") + "\n <div class=\"" + this.scope + "flag\">\n <div class=\"" + this.scope + "text\">\n " + this.options.text + "\n </div>\n </div>\n\n <style>\n img." + this.scope + "blood{\n position: fixed;\n pointer-events: none;\n left: 10vw;\n top: 10vh;\n max-width: 30vw;\n }\n\n\n ." + this.scope + "flag {\n background-image: url(\"" + UKRAINE_FLAG_IMAGE_URL + "\");\n background-size: cover;\n width:100vw;\n height:100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n ." + this.scope + "text {\n padding: 10px;\n font-size: 50px;\n color: #FFD500;\n background-color: #005BBB;\n border: 3px double #FFD500;\n }\n\n ." + this.scope + "text b{\n display: block;\n font-size: 100px;\n }\n </style>\n\n </div>\n ";
|
111
147
|
}
|
112
148
|
Ukraine.save = function (options) {
|
113
149
|
return __awaiter(this, void 0, void 0, function () {
|
@@ -126,13 +162,115 @@ var Ukraine = /** @class */ (function () {
|
|
126
162
|
options.element = window.document.createElement('div');
|
127
163
|
window.document.body.appendChild(options.element);
|
128
164
|
_a.label = 2;
|
129
|
-
case 2: return [2 /*return*/, new Ukraine(__assign({ element: options.element
|
165
|
+
case 2: return [2 /*return*/, new Ukraine(__assign(__assign({ element: options.element }, defaultOptions), options))];
|
130
166
|
}
|
131
167
|
});
|
132
168
|
});
|
133
169
|
};
|
170
|
+
Ukraine.prototype.rerenderConsole = function () {
|
171
|
+
try {
|
172
|
+
var message = document.querySelector("." + this.scope + "text").innerText;
|
173
|
+
console.clear();
|
174
|
+
console.info("%c " + message, "background: #005BBB; color: #FFD500; font-size: 50px;");
|
175
|
+
console.info(this.options.moreInfoUrl);
|
176
|
+
}
|
177
|
+
catch (error) {
|
178
|
+
console.error(error);
|
179
|
+
}
|
180
|
+
};
|
181
|
+
Ukraine.prototype.initConsole = function () {
|
182
|
+
var e_1, _a;
|
183
|
+
var _this = this;
|
184
|
+
this.rerenderConsole();
|
185
|
+
try {
|
186
|
+
for (var _b = __values([1, 10, 100, 1000, 10000, 50000]), _c = _b.next(); !_c.done; _c = _b.next()) {
|
187
|
+
var timeout = _c.value;
|
188
|
+
setTimeout(function () {
|
189
|
+
_this.rerenderConsole();
|
190
|
+
}, timeout);
|
191
|
+
}
|
192
|
+
}
|
193
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
194
|
+
finally {
|
195
|
+
try {
|
196
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
197
|
+
}
|
198
|
+
finally { if (e_1) throw e_1.error; }
|
199
|
+
}
|
200
|
+
};
|
201
|
+
Ukraine.prototype.initBlocking = function () {
|
202
|
+
var _this = this;
|
203
|
+
if (this.options.isCancelable) {
|
204
|
+
if (localStorage.getItem('Ukraine-read')) {
|
205
|
+
return false;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
// Note: To suppress main scrollbar if the page has longer content
|
209
|
+
window.document.body.style.setProperty('overflow', 'hidden', 'important');
|
210
|
+
this.options.element.style.zIndex = '999999';
|
211
|
+
this.options.element.style.position = 'fixed';
|
212
|
+
this.options.element.style.top = '0';
|
213
|
+
this.options.element.style.bottom = '0';
|
214
|
+
this.options.element.style.left = '0';
|
215
|
+
this.options.element.style.right = '0';
|
216
|
+
this.options.element.style.backgroundColor = '#ffffff';
|
217
|
+
this.options.element.innerHTML = /* TODO: Use spaceTrim */ "\n <div>\n " + (!this.options.isBloodIncluded
|
218
|
+
? ''
|
219
|
+
: "<img class=\"" + this.scope + "blood\" src=\"" + BLOOD_IMAGE_URL + "\" alt=\"Blood\"/>") + "\n\n " + (!this.options.isCancelable
|
220
|
+
? ''
|
221
|
+
: "<button class=\"" + this.scope + "cancel\">\u2716</button>") + "\n\n <div class=\"" + this.scope + "flag\">\n\n " + (!this.options.isGraphicIncluded
|
222
|
+
? ''
|
223
|
+
: "<div class=\"" + this.scope + "graphic\"><div class=\"inner\"></div></div>") + "\n\n <a class=\"" + this.scope + "text\" href=\"" + this.options.moreInfoUrl + "\">\n " + this.options.text + "\n </a>\n </div>\n\n <style>\n img." + this.scope + "blood{\n z-index: 9999999;\n position: fixed;\n pointer-events: none;\n left: 10vw;\n top: 10vh;\n max-width: 30vw;\n }\n\n button." + this.scope + "cancel{\n display: block;\n position: fixed;\n top: 0;\n right: 0;\n cursor: pointer;\n font-size: 35px;\n color: #FFD500;\n background-color: #005BBB;\n border: none;\n outline: none;\n }\n\n button." + this.scope + "cancel:hover{\n color: #ffffff;\n }\n\n\n ." + this.scope + "flag {\n background-image: url(\"" + UKRAINE_FLAG_IMAGE_URL + "\");\n background-size: cover;\n width:100vw;\n height:100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n ." + this.scope + "graphic {\n position: absolute;\n opacity: 0.5;\n pointer-events: none;\n }\n ." + this.scope + "graphic .inner {\n position: relative;\n background-image: url(\"" + this.getGraphicUrl() + "\");\n background-size: cover;\n opacity: 0.5;\n pointer-events: none;\n width:100vw;\n height:100vh;\n }\n\n ." + this.scope + "text {\n padding: 10px;\n font-size: 50px;\n color: #FFD500;\n background-color: #005BBB;\n border: 3px double #FFD500;\n }\n\n ." + this.scope + "text b{\n display: block;\n font-size: 100px;\n }\n\n\n </style>\n\n </div>\n ";
|
224
|
+
if (this.options.isCancelable) {
|
225
|
+
this.options.element
|
226
|
+
.querySelector("." + this.scope + "cancel")
|
227
|
+
.addEventListener('click', function () {
|
228
|
+
_this.options.element.remove();
|
229
|
+
localStorage.setItem('Ukraine-read', 'true');
|
230
|
+
location.reload();
|
231
|
+
});
|
232
|
+
}
|
233
|
+
if (this.options.isInConsole) {
|
234
|
+
this.initConsole();
|
235
|
+
}
|
236
|
+
return true;
|
237
|
+
};
|
238
|
+
Ukraine.prototype.initRibbon = function () {
|
239
|
+
var ribbonCss = Ukraine.RIBBON_CSSS[this.options.ribbon];
|
240
|
+
if (!ribbonCss) {
|
241
|
+
ribbonCss = Ukraine.RIBBON_CSSS[defaultOptions.ribbon];
|
242
|
+
}
|
243
|
+
var container = ribbonCss.container, rotate = ribbonCss.rotate;
|
244
|
+
this.options.element.innerHTML = /* TODO: Use spaceTrim */ "\n\n <div class=\"" + this.scope + "container\">\n <a class=\"" + this.scope + "ribbon\" href=\"" + this.options.moreInfoUrl + "\" target=\"_blank\" rel=\"noopener noreferrer\"></a>\n </div>\n\n <style>\n\n ." + this.scope + "container {\n\n position: fixed;\n " + container + "\n\n }\n\n ." + this.scope + "ribbon {\n display: block;\n width: 10vw;\n height: 0px;\n transform: rotate(" + rotate + ");\n border-top: 20px solid #0057b7;\n border-bottom: 20px solid #ffd700;\n }\n\n </style>\n\n\n ";
|
245
|
+
};
|
246
|
+
Ukraine.prototype.getGraphicUrl = function () {
|
247
|
+
if (typeof this.options.isGraphicIncluded === 'string') {
|
248
|
+
return this.options.isGraphicIncluded;
|
249
|
+
}
|
250
|
+
else {
|
251
|
+
return randomItem("https://raw.githubusercontent.com/hejny/Ukraine/main/assets/graphic/war1.jpg");
|
252
|
+
}
|
253
|
+
};
|
254
|
+
Ukraine.RIBBON_CSSS = {
|
255
|
+
TOP_LEFT: {
|
256
|
+
container: 'top: 0; left: 0;transform: translateX(-32px);',
|
257
|
+
rotate: '-45deg',
|
258
|
+
},
|
259
|
+
TOP_RIGHT: {
|
260
|
+
container: 'top: 0; right: 0;transform: translateX(32px);',
|
261
|
+
rotate: '45deg',
|
262
|
+
},
|
263
|
+
BOTTOM_LEFT: {
|
264
|
+
container: 'bottom: 0; left: 0;transform: translateX(-32px);',
|
265
|
+
rotate: '45deg',
|
266
|
+
},
|
267
|
+
BOTTOM_RIGHT: {
|
268
|
+
container: 'bottom: 0; right: 0;transform: translateX(32px);',
|
269
|
+
rotate: '-45deg',
|
270
|
+
},
|
271
|
+
};
|
134
272
|
return Ukraine;
|
135
273
|
}());
|
136
274
|
|
137
|
-
export { Ukraine as default };
|
275
|
+
export { Ukraine as default, defaultOptions, getUserLanguage };
|
138
276
|
//# sourceMappingURL=main.js.map
|
package/dist/esm/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/assets.ts","../../src/getUserLanguage.ts","../../src/Ukraine.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null,null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAiBA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrD,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7D,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7B,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,SAAS;AACT,QAAQ,OAAO,CAAC,CAAC;AACjB,MAAK;AACL,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAC3C,EAAC;AA4BD;AACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OA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CAAC,KAAK,0CACR,IAAI,CAAC,KAAK,+BACpB,IAAI,CAAC,OAAO,CAAC,IAAI,qFAKf,IAAI,CAAC,KAAK,0MASb,IAAI,CAAC,KAAK,sDACc,sBAAsB,sPAS9C,IAAI,CAAC,KAAK,gOAQV,IAAI,CAAC,KAAK,yIAOlB,CAAC;KACH;IA/FmB,YAAI,GAAxB,UAAyB,OAAkC;;;;;wBACvD,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;8BAEpB,OAAO,CAAC,OAAO,KAAK,SAAS,CAAA,EAA7B,wBAA6B;wBAC7B,qBAAM,IAAI,OAAO,CAAO,UAAC,OAAO;gCAC5B,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,UAAC,KAAK;oCAClC,OAAO,EAAE,CAAC;iCACb,CAAC,CAAC;6BACN,CAAC,EAAA;;wBAJF,SAIE,CAAC;wBAEH,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;wBACvD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;;4BAGtD,sBAAO,IAAI,OAAO,YACd,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,SAAS,EAAE,0BAA0B,IAAI,EAAE,IAAI,CAAC,EAChD,eAAe,EAAE,IAAI,EACrB,IAAI,EAAE,4JAAoC,IACvC,OAAO,EACZ,EAAC;;;;KACN;IA2EL,cAAC;AAAD,CAAC;;;;"}
|
1
|
+
{"version":3,"file":"main.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/assets.ts","../../src/getUserLanguage.ts","../../src/options.ts","../../src/randomItem.ts","../../src/Ukraine.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null,null,null,null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAiBA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrD,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7D,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7B,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,SAAS;AACT,QAAQ,OAAO,CAAC,CAAC;AACjB,MAAK;AACL,IAAI,OAAO,QAAQ,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mBAAW,GAAG;QACzB,QAAQ,EAAE;YACN,SAAS,EAAE,+CAA+C;YAC1D,MAAM,EAAE,QAAQ;SACnB;QACD,SAAS,EAAE;YACP,SAAS,EAAE,+CAA+C;YAC1D,MAAM,EAAE,OAAO;SAClB;QACD,WAAW,EAAE;YACT,SAAS,EAAE,kDAAkD;YAC7D,MAAM,EAAE,OAAO;SAClB;QACD,YAAY,EAAE;YACV,SAAS,EAAE,kDAAkD;YAC7D,MAAM,EAAE,QAAQ;SACnB;KACJ,CAAC;IAmDN,cAAC;CAhRD;;;;"}
|
@@ -4,4 +4,10 @@ export declare class Ukraine {
|
|
4
4
|
static save(options?: Partial<IUkraineOptions>): Promise<Ukraine>;
|
5
5
|
private readonly scope;
|
6
6
|
constructor(options: IUkraineOptions);
|
7
|
+
private rerenderConsole;
|
8
|
+
private initConsole;
|
9
|
+
private initBlocking;
|
10
|
+
private static RIBBON_CSSS;
|
11
|
+
private initRibbon;
|
12
|
+
private getGraphicUrl;
|
7
13
|
}
|
@@ -7,14 +7,38 @@ export interface IUkraineOptions {
|
|
7
7
|
/**
|
8
8
|
* List of banned countries by ISO 3166
|
9
9
|
*/
|
10
|
-
|
10
|
+
countries: string[];
|
11
11
|
/**
|
12
12
|
* What text to show
|
13
13
|
* Note: It is possible to use HTML tags - do not pass here user input
|
14
14
|
*/
|
15
15
|
text: string;
|
16
|
+
/**
|
17
|
+
* Link to more information about this war
|
18
|
+
* Note: Using type string (not URL class) to keep maximal compatibility
|
19
|
+
*/
|
20
|
+
moreInfoUrl: string;
|
21
|
+
/**
|
22
|
+
* If set, ribbon with Ukraine flag leading to `moreInfoUrl` will be shown in corner of the page for all users
|
23
|
+
*/
|
24
|
+
ribbon: null | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
|
25
|
+
/**
|
26
|
+
* If true, information will be shown also in dev console
|
27
|
+
*/
|
28
|
+
isInConsole: boolean;
|
16
29
|
/**
|
17
30
|
* If true, image of the blood will be shown.
|
18
31
|
*/
|
19
32
|
isBloodIncluded: boolean;
|
33
|
+
/**
|
34
|
+
* If true, images from war will be shown.
|
35
|
+
* If string, image with given URL will be shown
|
36
|
+
*/
|
37
|
+
isGraphicIncluded: boolean | string;
|
38
|
+
/**
|
39
|
+
* If true, there will be option to proceed to website
|
40
|
+
* This will change HARD ban to SOFT ban
|
41
|
+
*/
|
42
|
+
isCancelable: boolean;
|
20
43
|
}
|
44
|
+
export declare const defaultOptions: Omit<IUkraineOptions, 'element'>;
|
package/dist/umd/main.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ?
|
3
|
-
typeof define === 'function' && define.amd ? define(factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Ukraine =
|
5
|
-
})(this, (function () { 'use strict';
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Ukraine = {}));
|
5
|
+
})(this, (function (exports) { 'use strict';
|
6
6
|
|
7
7
|
/*! *****************************************************************************
|
8
8
|
Copyright (c) Microsoft Corporation.
|
@@ -68,6 +68,18 @@
|
|
68
68
|
}
|
69
69
|
}
|
70
70
|
|
71
|
+
function __values(o) {
|
72
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
73
|
+
if (m) return m.call(o);
|
74
|
+
if (o && typeof o.length === "number") return {
|
75
|
+
next: function () {
|
76
|
+
if (o && i >= o.length) o = void 0;
|
77
|
+
return { value: o && o[i++], done: !o };
|
78
|
+
}
|
79
|
+
};
|
80
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
81
|
+
}
|
82
|
+
|
71
83
|
function __read(o, n) {
|
72
84
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
73
85
|
if (!m) return o;
|
@@ -94,26 +106,50 @@
|
|
94
106
|
return language;
|
95
107
|
}
|
96
108
|
|
109
|
+
var defaultOptions = {
|
110
|
+
/**
|
111
|
+
* TODO: Add more countries like chechnya
|
112
|
+
*/
|
113
|
+
countries: [/* Russia and Belarus */ 'ru', 'by'],
|
114
|
+
text: "\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u043E\u0439\u043D\u0443 \u0441 <b>\u0423\u043A\u0440\u0430\u0438\u043D\u043E\u0439</b>",
|
115
|
+
/**
|
116
|
+
* TODO: Probbably better default URL
|
117
|
+
*/
|
118
|
+
moreInfoUrl: "https://github.com/hejny/Ukraine",
|
119
|
+
ribbon: 'TOP_LEFT',
|
120
|
+
isInConsole: true,
|
121
|
+
isBloodIncluded: true,
|
122
|
+
isGraphicIncluded: true,
|
123
|
+
isCancelable: false,
|
124
|
+
};
|
125
|
+
|
126
|
+
/**
|
127
|
+
*
|
128
|
+
* @collboard-modules-sdk
|
129
|
+
*/
|
130
|
+
function randomItem() {
|
131
|
+
var items = [];
|
132
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
133
|
+
items[_i] = arguments[_i];
|
134
|
+
}
|
135
|
+
return items[Math.floor(Math.random() * items.length)];
|
136
|
+
}
|
137
|
+
|
97
138
|
var Ukraine = /** @class */ (function () {
|
98
139
|
function Ukraine(options) {
|
99
140
|
// TODO: Split into multiple methods like checkRequirements and init
|
100
141
|
this.options = options;
|
101
142
|
this.scope = 'x' + Math.random().toString().split('.')[1] + '_';
|
102
|
-
|
103
|
-
|
143
|
+
var isBlocking;
|
144
|
+
if (this.options.countries.includes(getUserLanguage())) {
|
145
|
+
isBlocking = this.initBlocking();
|
146
|
+
}
|
147
|
+
else {
|
148
|
+
isBlocking = false;
|
149
|
+
}
|
150
|
+
if (options.ribbon && !isBlocking) {
|
151
|
+
this.initRibbon();
|
104
152
|
}
|
105
|
-
// Note: To suppress main scrollbar if the page has longer content
|
106
|
-
window.document.body.style.setProperty('overflow', 'hidden', 'important');
|
107
|
-
this.options.element.style.zIndex = '999999';
|
108
|
-
this.options.element.style.position = 'fixed';
|
109
|
-
this.options.element.style.top = '0';
|
110
|
-
this.options.element.style.bottom = '0';
|
111
|
-
this.options.element.style.left = '0';
|
112
|
-
this.options.element.style.right = '0';
|
113
|
-
this.options.element.style.backgroundColor = '#ffffff';
|
114
|
-
this.options.element.innerHTML = /* TODO: Use spaceTrim */ "\n <div>\n " + (!this.options.isBloodIncluded
|
115
|
-
? ''
|
116
|
-
: "<img class=\"" + this.scope + "blood\" src=\"" + BLOOD_IMAGE_URL + "\" alt=\"Blood\"/>") + "\n <div class=\"" + this.scope + "flag\">\n <div class=\"" + this.scope + "text\">\n " + this.options.text + "\n </div>\n </div>\n\n <style>\n img." + this.scope + "blood{\n position: fixed;\n pointer-events: none;\n left: 10vw;\n top: 10vh;\n max-width: 30vw;\n }\n\n\n ." + this.scope + "flag {\n background-image: url(\"" + UKRAINE_FLAG_IMAGE_URL + "\");\n background-size: cover;\n width:100vw;\n height:100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n ." + this.scope + "text {\n padding: 10px;\n font-size: 50px;\n color: #FFD500;\n background-color: #005BBB;\n border: 3px double #FFD500;\n }\n\n ." + this.scope + "text b{\n display: block;\n font-size: 100px;\n }\n </style>\n\n </div>\n ";
|
117
153
|
}
|
118
154
|
Ukraine.save = function (options) {
|
119
155
|
return __awaiter(this, void 0, void 0, function () {
|
@@ -132,15 +168,121 @@
|
|
132
168
|
options.element = window.document.createElement('div');
|
133
169
|
window.document.body.appendChild(options.element);
|
134
170
|
_a.label = 2;
|
135
|
-
case 2: return [2 /*return*/, new Ukraine(__assign({ element: options.element
|
171
|
+
case 2: return [2 /*return*/, new Ukraine(__assign(__assign({ element: options.element }, defaultOptions), options))];
|
136
172
|
}
|
137
173
|
});
|
138
174
|
});
|
139
175
|
};
|
176
|
+
Ukraine.prototype.rerenderConsole = function () {
|
177
|
+
try {
|
178
|
+
var message = document.querySelector("." + this.scope + "text").innerText;
|
179
|
+
console.clear();
|
180
|
+
console.info("%c " + message, "background: #005BBB; color: #FFD500; font-size: 50px;");
|
181
|
+
console.info(this.options.moreInfoUrl);
|
182
|
+
}
|
183
|
+
catch (error) {
|
184
|
+
console.error(error);
|
185
|
+
}
|
186
|
+
};
|
187
|
+
Ukraine.prototype.initConsole = function () {
|
188
|
+
var e_1, _a;
|
189
|
+
var _this = this;
|
190
|
+
this.rerenderConsole();
|
191
|
+
try {
|
192
|
+
for (var _b = __values([1, 10, 100, 1000, 10000, 50000]), _c = _b.next(); !_c.done; _c = _b.next()) {
|
193
|
+
var timeout = _c.value;
|
194
|
+
setTimeout(function () {
|
195
|
+
_this.rerenderConsole();
|
196
|
+
}, timeout);
|
197
|
+
}
|
198
|
+
}
|
199
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
200
|
+
finally {
|
201
|
+
try {
|
202
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
203
|
+
}
|
204
|
+
finally { if (e_1) throw e_1.error; }
|
205
|
+
}
|
206
|
+
};
|
207
|
+
Ukraine.prototype.initBlocking = function () {
|
208
|
+
var _this = this;
|
209
|
+
if (this.options.isCancelable) {
|
210
|
+
if (localStorage.getItem('Ukraine-read')) {
|
211
|
+
return false;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
// Note: To suppress main scrollbar if the page has longer content
|
215
|
+
window.document.body.style.setProperty('overflow', 'hidden', 'important');
|
216
|
+
this.options.element.style.zIndex = '999999';
|
217
|
+
this.options.element.style.position = 'fixed';
|
218
|
+
this.options.element.style.top = '0';
|
219
|
+
this.options.element.style.bottom = '0';
|
220
|
+
this.options.element.style.left = '0';
|
221
|
+
this.options.element.style.right = '0';
|
222
|
+
this.options.element.style.backgroundColor = '#ffffff';
|
223
|
+
this.options.element.innerHTML = /* TODO: Use spaceTrim */ "\n <div>\n " + (!this.options.isBloodIncluded
|
224
|
+
? ''
|
225
|
+
: "<img class=\"" + this.scope + "blood\" src=\"" + BLOOD_IMAGE_URL + "\" alt=\"Blood\"/>") + "\n\n " + (!this.options.isCancelable
|
226
|
+
? ''
|
227
|
+
: "<button class=\"" + this.scope + "cancel\">\u2716</button>") + "\n\n <div class=\"" + this.scope + "flag\">\n\n " + (!this.options.isGraphicIncluded
|
228
|
+
? ''
|
229
|
+
: "<div class=\"" + this.scope + "graphic\"><div class=\"inner\"></div></div>") + "\n\n <a class=\"" + this.scope + "text\" href=\"" + this.options.moreInfoUrl + "\">\n " + this.options.text + "\n </a>\n </div>\n\n <style>\n img." + this.scope + "blood{\n z-index: 9999999;\n position: fixed;\n pointer-events: none;\n left: 10vw;\n top: 10vh;\n max-width: 30vw;\n }\n\n button." + this.scope + "cancel{\n display: block;\n position: fixed;\n top: 0;\n right: 0;\n cursor: pointer;\n font-size: 35px;\n color: #FFD500;\n background-color: #005BBB;\n border: none;\n outline: none;\n }\n\n button." + this.scope + "cancel:hover{\n color: #ffffff;\n }\n\n\n ." + this.scope + "flag {\n background-image: url(\"" + UKRAINE_FLAG_IMAGE_URL + "\");\n background-size: cover;\n width:100vw;\n height:100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n ." + this.scope + "graphic {\n position: absolute;\n opacity: 0.5;\n pointer-events: none;\n }\n ." + this.scope + "graphic .inner {\n position: relative;\n background-image: url(\"" + this.getGraphicUrl() + "\");\n background-size: cover;\n opacity: 0.5;\n pointer-events: none;\n width:100vw;\n height:100vh;\n }\n\n ." + this.scope + "text {\n padding: 10px;\n font-size: 50px;\n color: #FFD500;\n background-color: #005BBB;\n border: 3px double #FFD500;\n }\n\n ." + this.scope + "text b{\n display: block;\n font-size: 100px;\n }\n\n\n </style>\n\n </div>\n ";
|
230
|
+
if (this.options.isCancelable) {
|
231
|
+
this.options.element
|
232
|
+
.querySelector("." + this.scope + "cancel")
|
233
|
+
.addEventListener('click', function () {
|
234
|
+
_this.options.element.remove();
|
235
|
+
localStorage.setItem('Ukraine-read', 'true');
|
236
|
+
location.reload();
|
237
|
+
});
|
238
|
+
}
|
239
|
+
if (this.options.isInConsole) {
|
240
|
+
this.initConsole();
|
241
|
+
}
|
242
|
+
return true;
|
243
|
+
};
|
244
|
+
Ukraine.prototype.initRibbon = function () {
|
245
|
+
var ribbonCss = Ukraine.RIBBON_CSSS[this.options.ribbon];
|
246
|
+
if (!ribbonCss) {
|
247
|
+
ribbonCss = Ukraine.RIBBON_CSSS[defaultOptions.ribbon];
|
248
|
+
}
|
249
|
+
var container = ribbonCss.container, rotate = ribbonCss.rotate;
|
250
|
+
this.options.element.innerHTML = /* TODO: Use spaceTrim */ "\n\n <div class=\"" + this.scope + "container\">\n <a class=\"" + this.scope + "ribbon\" href=\"" + this.options.moreInfoUrl + "\" target=\"_blank\" rel=\"noopener noreferrer\"></a>\n </div>\n\n <style>\n\n ." + this.scope + "container {\n\n position: fixed;\n " + container + "\n\n }\n\n ." + this.scope + "ribbon {\n display: block;\n width: 10vw;\n height: 0px;\n transform: rotate(" + rotate + ");\n border-top: 20px solid #0057b7;\n border-bottom: 20px solid #ffd700;\n }\n\n </style>\n\n\n ";
|
251
|
+
};
|
252
|
+
Ukraine.prototype.getGraphicUrl = function () {
|
253
|
+
if (typeof this.options.isGraphicIncluded === 'string') {
|
254
|
+
return this.options.isGraphicIncluded;
|
255
|
+
}
|
256
|
+
else {
|
257
|
+
return randomItem("https://raw.githubusercontent.com/hejny/Ukraine/main/assets/graphic/war1.jpg");
|
258
|
+
}
|
259
|
+
};
|
260
|
+
Ukraine.RIBBON_CSSS = {
|
261
|
+
TOP_LEFT: {
|
262
|
+
container: 'top: 0; left: 0;transform: translateX(-32px);',
|
263
|
+
rotate: '-45deg',
|
264
|
+
},
|
265
|
+
TOP_RIGHT: {
|
266
|
+
container: 'top: 0; right: 0;transform: translateX(32px);',
|
267
|
+
rotate: '45deg',
|
268
|
+
},
|
269
|
+
BOTTOM_LEFT: {
|
270
|
+
container: 'bottom: 0; left: 0;transform: translateX(-32px);',
|
271
|
+
rotate: '45deg',
|
272
|
+
},
|
273
|
+
BOTTOM_RIGHT: {
|
274
|
+
container: 'bottom: 0; right: 0;transform: translateX(32px);',
|
275
|
+
rotate: '-45deg',
|
276
|
+
},
|
277
|
+
};
|
140
278
|
return Ukraine;
|
141
279
|
}());
|
142
280
|
|
143
|
-
|
281
|
+
exports["default"] = Ukraine;
|
282
|
+
exports.defaultOptions = defaultOptions;
|
283
|
+
exports.getUserLanguage = getUserLanguage;
|
284
|
+
|
285
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
144
286
|
|
145
287
|
}));
|
146
288
|
//# sourceMappingURL=main.js.map
|
package/dist/umd/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/assets.ts","../../src/getUserLanguage.ts","../../src/Ukraine.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value)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,KAAK,SAAS,CAAA,EAA7B,wBAA6B;4BAC7B,qBAAM,IAAI,OAAO,CAAO,UAAC,OAAO;oCAC5B,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,UAAC,KAAK;wCAClC,OAAO,EAAE,CAAC;qCACb,CAAC,CAAC;iCACN,CAAC,EAAA;;4BAJF,SAIE,CAAC;4BAEH,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;4BACvD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;;gCAGtD,sBAAO,IAAI,OAAO,YACd,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,SAAS,EAAE,0BAA0B,IAAI,EAAE,IAAI,CAAC,EAChD,eAAe,EAAE,IAAI,EACrB,IAAI,EAAE,4JAAoC,IACvC,OAAO,EACZ,EAAC;;;;SACN;QA2EL,cAAC;IAAD,CAAC;;;;;;;;"}
|
1
|
+
{"version":3,"file":"main.js","sources":["../../node_modules/tslib/tslib.es6.js","../../src/assets.ts","../../src/getUserLanguage.ts","../../src/options.ts","../../src/randomItem.ts","../../src/Ukraine.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n",null,null,null,null,null],"names":[],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AAiBA;IACO,IAAI,QAAQ,GAAG,WAAW;IACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;IACrD,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;IAC7D,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAC7B,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACzF,SAAS;IACT,QAAQ,OAAO,CAAC,CAAC;IACjB,MAAK;IACL,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,EAAC;AA4BD;IACO,SAAS,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;IAC7D,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAA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AE,kDAAkD;gBAC7D,MAAM,EAAE,QAAQ;aACnB;SACJ,CAAC;QAmDN,cAAC;KAhRD;;;;;;;;;;;;"}
|
@@ -4,4 +4,10 @@ export declare class Ukraine {
|
|
4
4
|
static save(options?: Partial<IUkraineOptions>): Promise<Ukraine>;
|
5
5
|
private readonly scope;
|
6
6
|
constructor(options: IUkraineOptions);
|
7
|
+
private rerenderConsole;
|
8
|
+
private initConsole;
|
9
|
+
private initBlocking;
|
10
|
+
private static RIBBON_CSSS;
|
11
|
+
private initRibbon;
|
12
|
+
private getGraphicUrl;
|
7
13
|
}
|
@@ -7,14 +7,38 @@ export interface IUkraineOptions {
|
|
7
7
|
/**
|
8
8
|
* List of banned countries by ISO 3166
|
9
9
|
*/
|
10
|
-
|
10
|
+
countries: string[];
|
11
11
|
/**
|
12
12
|
* What text to show
|
13
13
|
* Note: It is possible to use HTML tags - do not pass here user input
|
14
14
|
*/
|
15
15
|
text: string;
|
16
|
+
/**
|
17
|
+
* Link to more information about this war
|
18
|
+
* Note: Using type string (not URL class) to keep maximal compatibility
|
19
|
+
*/
|
20
|
+
moreInfoUrl: string;
|
21
|
+
/**
|
22
|
+
* If set, ribbon with Ukraine flag leading to `moreInfoUrl` will be shown in corner of the page for all users
|
23
|
+
*/
|
24
|
+
ribbon: null | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
|
25
|
+
/**
|
26
|
+
* If true, information will be shown also in dev console
|
27
|
+
*/
|
28
|
+
isInConsole: boolean;
|
16
29
|
/**
|
17
30
|
* If true, image of the blood will be shown.
|
18
31
|
*/
|
19
32
|
isBloodIncluded: boolean;
|
33
|
+
/**
|
34
|
+
* If true, images from war will be shown.
|
35
|
+
* If string, image with given URL will be shown
|
36
|
+
*/
|
37
|
+
isGraphicIncluded: boolean | string;
|
38
|
+
/**
|
39
|
+
* If true, there will be option to proceed to website
|
40
|
+
* This will change HARD ban to SOFT ban
|
41
|
+
*/
|
42
|
+
isCancelable: boolean;
|
20
43
|
}
|
44
|
+
export declare const defaultOptions: Omit<IUkraineOptions, 'element'>;
|
package/package.json
CHANGED
package/tslint.json
CHANGED