Last change
on this file since b738035 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago |
adding photos
|
-
Property mode
set to
100644
|
File size:
835 bytes
|
Rev | Line | |
---|
[59329aa] | 1 | export var lastId = 0;
|
---|
| 2 | export function UniqueComponentId() {
|
---|
| 3 | let prefix = 'pr_id_';
|
---|
| 4 | lastId++;
|
---|
| 5 | return `${prefix}${lastId}`;
|
---|
| 6 | }
|
---|
| 7 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5pcXVlY29tcG9uZW50aWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvdXRpbHMvdW5pcXVlY29tcG9uZW50aWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsTUFBTSxDQUFDLElBQUksTUFBTSxHQUFHLENBQUMsQ0FBQztBQUV0QixNQUFNLFVBQVUsaUJBQWlCO0lBQzdCLElBQUksTUFBTSxHQUFHLFFBQVEsQ0FBQztJQUN0QixNQUFNLEVBQUUsQ0FBQztJQUNULE9BQU8sR0FBRyxNQUFNLEdBQUcsTUFBTSxFQUFFLENBQUM7QUFDaEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIlxuZXhwb3J0IHZhciBsYXN0SWQgPSAwO1xuXG5leHBvcnQgZnVuY3Rpb24gVW5pcXVlQ29tcG9uZW50SWQgKCkge1xuICAgIGxldCBwcmVmaXggPSAncHJfaWRfJztcbiAgICBsYXN0SWQrKztcbiAgICByZXR1cm4gYCR7cHJlZml4fSR7bGFzdElkfWA7XG59Il19 |
---|
Note:
See
TracBrowser
for help on using the repository browser.