diff --git a/.prettierignore b/.prettierignore index 56ea9d4..a7e1846 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ *.js -*.ts \ No newline at end of file +*.ts +*.json \ No newline at end of file diff --git a/apps/api-master/drizzle/meta/0000_snapshot.json b/apps/api-master/drizzle/meta/0000_snapshot.json index de712b8..64edde3 100644 --- a/apps/api-master/drizzle/meta/0000_snapshot.json +++ b/apps/api-master/drizzle/meta/0000_snapshot.json @@ -1,70 +1,70 @@ { - "id": "e29a6708-01f1-455a-b345-63dac1e124dc", - "prevId": "00000000-0000-0000-0000-000000000000", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.online_users_ip_data": { - "name": "online_users_ip_data", - "schema": "", - "columns": { - "uuid": { - "name": "uuid", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "ip": { - "name": "ip", - "type": "varchar(45)", - "primaryKey": false, - "notNull": true - }, - "country": { - "name": "country", - "type": "varchar(2)", - "primaryKey": false, - "notNull": true - }, - "latitude": { - "name": "latitude", - "type": "numeric(10, 8)", - "primaryKey": false, - "notNull": true - }, - "longitude": { - "name": "longitude", - "type": "numeric(11, 8)", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "timestamp": { - "name": "timestamp", - "type": "timestamp", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file + "id": "e29a6708-01f1-455a-b345-63dac1e124dc", + "prevId": "00000000-0000-0000-0000-000000000000", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.online_users_ip_data": { + "name": "online_users_ip_data", + "schema": "", + "columns": { + "uuid": { + "name": "uuid", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "ip": { + "name": "ip", + "type": "varchar(45)", + "primaryKey": false, + "notNull": true + }, + "country": { + "name": "country", + "type": "varchar(2)", + "primaryKey": false, + "notNull": true + }, + "latitude": { + "name": "latitude", + "type": "numeric(10, 8)", + "primaryKey": false, + "notNull": true + }, + "longitude": { + "name": "longitude", + "type": "numeric(11, 8)", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "varchar(255)", + "primaryKey": false, + "notNull": false + }, + "timestamp": { + "name": "timestamp", + "type": "timestamp", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} diff --git a/apps/api-master/drizzle/meta/0001_snapshot.json b/apps/api-master/drizzle/meta/0001_snapshot.json index 5c2d7da..a2fee68 100644 --- a/apps/api-master/drizzle/meta/0001_snapshot.json +++ b/apps/api-master/drizzle/meta/0001_snapshot.json @@ -1,101 +1,101 @@ { - "id": "4aa32a8e-f573-43b9-976a-2d078a0df0ea", - "prevId": "e29a6708-01f1-455a-b345-63dac1e124dc", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.online_users_ip_data": { - "name": "online_users_ip_data", - "schema": "", - "columns": { - "uuid": { - "name": "uuid", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "ip": { - "name": "ip", - "type": "varchar(45)", - "primaryKey": false, - "notNull": true - }, - "country": { - "name": "country", - "type": "varchar(2)", - "primaryKey": false, - "notNull": true - }, - "latitude": { - "name": "latitude", - "type": "numeric(10, 8)", - "primaryKey": false, - "notNull": true - }, - "longitude": { - "name": "longitude", - "type": "numeric(11, 8)", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "timestamp": { - "name": "timestamp", - "type": "timestamp", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": { - "idx_online_users_uuid": { - "name": "idx_online_users_uuid", - "columns": [ - { - "expression": "uuid", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "idx_online_users_timestamp": { - "name": "idx_online_users_timestamp", - "columns": [ - { - "expression": "timestamp", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file + "id": "4aa32a8e-f573-43b9-976a-2d078a0df0ea", + "prevId": "e29a6708-01f1-455a-b345-63dac1e124dc", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.online_users_ip_data": { + "name": "online_users_ip_data", + "schema": "", + "columns": { + "uuid": { + "name": "uuid", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "ip": { + "name": "ip", + "type": "varchar(45)", + "primaryKey": false, + "notNull": true + }, + "country": { + "name": "country", + "type": "varchar(2)", + "primaryKey": false, + "notNull": true + }, + "latitude": { + "name": "latitude", + "type": "numeric(10, 8)", + "primaryKey": false, + "notNull": true + }, + "longitude": { + "name": "longitude", + "type": "numeric(11, 8)", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "varchar(255)", + "primaryKey": false, + "notNull": false + }, + "timestamp": { + "name": "timestamp", + "type": "timestamp", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": { + "idx_online_users_uuid": { + "name": "idx_online_users_uuid", + "columns": [ + { + "expression": "uuid", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "idx_online_users_timestamp": { + "name": "idx_online_users_timestamp", + "columns": [ + { + "expression": "timestamp", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} diff --git a/apps/api-master/drizzle/meta/0002_snapshot.json b/apps/api-master/drizzle/meta/0002_snapshot.json index a4d0a92..6e56856 100644 --- a/apps/api-master/drizzle/meta/0002_snapshot.json +++ b/apps/api-master/drizzle/meta/0002_snapshot.json @@ -1,101 +1,101 @@ { - "id": "c1b8dbed-b232-4d66-9e74-b9af333095bc", - "prevId": "4aa32a8e-f573-43b9-976a-2d078a0df0ea", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.online_users_ip_data": { - "name": "online_users_ip_data", - "schema": "", - "columns": { - "uuid": { - "name": "uuid", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "ip": { - "name": "ip", - "type": "varchar(45)", - "primaryKey": false, - "notNull": true - }, - "country": { - "name": "country", - "type": "varchar(2)", - "primaryKey": false, - "notNull": true - }, - "latitude": { - "name": "latitude", - "type": "numeric(10, 8)", - "primaryKey": false, - "notNull": true - }, - "longitude": { - "name": "longitude", - "type": "numeric(11, 8)", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "varchar(255)", - "primaryKey": false, - "notNull": false - }, - "timestamp": { - "name": "timestamp", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": { - "idx_online_users_uuid": { - "name": "idx_online_users_uuid", - "columns": [ - { - "expression": "uuid", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "idx_online_users_timestamp": { - "name": "idx_online_users_timestamp", - "columns": [ - { - "expression": "timestamp", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file + "id": "c1b8dbed-b232-4d66-9e74-b9af333095bc", + "prevId": "4aa32a8e-f573-43b9-976a-2d078a0df0ea", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.online_users_ip_data": { + "name": "online_users_ip_data", + "schema": "", + "columns": { + "uuid": { + "name": "uuid", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "ip": { + "name": "ip", + "type": "varchar(45)", + "primaryKey": false, + "notNull": true + }, + "country": { + "name": "country", + "type": "varchar(2)", + "primaryKey": false, + "notNull": true + }, + "latitude": { + "name": "latitude", + "type": "numeric(10, 8)", + "primaryKey": false, + "notNull": true + }, + "longitude": { + "name": "longitude", + "type": "numeric(11, 8)", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "varchar(255)", + "primaryKey": false, + "notNull": false + }, + "timestamp": { + "name": "timestamp", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": { + "idx_online_users_uuid": { + "name": "idx_online_users_uuid", + "columns": [ + { + "expression": "uuid", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "idx_online_users_timestamp": { + "name": "idx_online_users_timestamp", + "columns": [ + { + "expression": "timestamp", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} diff --git a/apps/api-master/drizzle/meta/0003_snapshot.json b/apps/api-master/drizzle/meta/0003_snapshot.json index 4011cbd..3bd89b2 100644 --- a/apps/api-master/drizzle/meta/0003_snapshot.json +++ b/apps/api-master/drizzle/meta/0003_snapshot.json @@ -1,102 +1,102 @@ { - "id": "e409a4d0-f698-484a-b412-38966a7b3a19", - "prevId": "c1b8dbed-b232-4d66-9e74-b9af333095bc", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.online_users_ip_data": { - "name": "online_users_ip_data", - "schema": "", - "columns": { - "uuid": { - "name": "uuid", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "ip": { - "name": "ip", - "type": "varchar(45)", - "primaryKey": false, - "notNull": true - }, - "country": { - "name": "country", - "type": "varchar(2)", - "primaryKey": false, - "notNull": true - }, - "latitude": { - "name": "latitude", - "type": "numeric(10, 8)", - "primaryKey": false, - "notNull": true - }, - "longitude": { - "name": "longitude", - "type": "numeric(11, 8)", - "primaryKey": false, - "notNull": true - }, - "presences": { - "name": "presences", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "timestamp": { - "name": "timestamp", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": { - "idx_online_users_uuid": { - "name": "idx_online_users_uuid", - "columns": [ - { - "expression": "uuid", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "idx_online_users_timestamp": { - "name": "idx_online_users_timestamp", - "columns": [ - { - "expression": "timestamp", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file + "id": "e409a4d0-f698-484a-b412-38966a7b3a19", + "prevId": "c1b8dbed-b232-4d66-9e74-b9af333095bc", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.online_users_ip_data": { + "name": "online_users_ip_data", + "schema": "", + "columns": { + "uuid": { + "name": "uuid", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "ip": { + "name": "ip", + "type": "varchar(45)", + "primaryKey": false, + "notNull": true + }, + "country": { + "name": "country", + "type": "varchar(2)", + "primaryKey": false, + "notNull": true + }, + "latitude": { + "name": "latitude", + "type": "numeric(10, 8)", + "primaryKey": false, + "notNull": true + }, + "longitude": { + "name": "longitude", + "type": "numeric(11, 8)", + "primaryKey": false, + "notNull": true + }, + "presences": { + "name": "presences", + "type": "jsonb", + "primaryKey": false, + "notNull": true, + "default": "'[]'" + }, + "timestamp": { + "name": "timestamp", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": { + "idx_online_users_uuid": { + "name": "idx_online_users_uuid", + "columns": [ + { + "expression": "uuid", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "idx_online_users_timestamp": { + "name": "idx_online_users_timestamp", + "columns": [ + { + "expression": "timestamp", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} diff --git a/apps/api-master/drizzle/meta/0004_snapshot.json b/apps/api-master/drizzle/meta/0004_snapshot.json index 2d995dc..0be8509 100644 --- a/apps/api-master/drizzle/meta/0004_snapshot.json +++ b/apps/api-master/drizzle/meta/0004_snapshot.json @@ -1,109 +1,109 @@ { - "id": "179435b5-dc15-4a42-9539-c3f336699d63", - "prevId": "e409a4d0-f698-484a-b412-38966a7b3a19", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.online_users_ip_data": { - "name": "online_users_ip_data", - "schema": "", - "columns": { - "uuid": { - "name": "uuid", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "ip": { - "name": "ip", - "type": "varchar(45)", - "primaryKey": false, - "notNull": true - }, - "country": { - "name": "country", - "type": "varchar(2)", - "primaryKey": false, - "notNull": true - }, - "latitude": { - "name": "latitude", - "type": "numeric(10, 8)", - "primaryKey": false, - "notNull": true - }, - "longitude": { - "name": "longitude", - "type": "numeric(11, 8)", - "primaryKey": false, - "notNull": true - }, - "sessions": { - "name": "sessions", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "presences": { - "name": "presences", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "timestamp": { - "name": "timestamp", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false, - "default": "now()" - } - }, - "indexes": { - "idx_online_users_uuid": { - "name": "idx_online_users_uuid", - "columns": [ - { - "expression": "uuid", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "idx_online_users_timestamp": { - "name": "idx_online_users_timestamp", - "columns": [ - { - "expression": "timestamp", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {} - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file + "id": "179435b5-dc15-4a42-9539-c3f336699d63", + "prevId": "e409a4d0-f698-484a-b412-38966a7b3a19", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.online_users_ip_data": { + "name": "online_users_ip_data", + "schema": "", + "columns": { + "uuid": { + "name": "uuid", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "ip": { + "name": "ip", + "type": "varchar(45)", + "primaryKey": false, + "notNull": true + }, + "country": { + "name": "country", + "type": "varchar(2)", + "primaryKey": false, + "notNull": true + }, + "latitude": { + "name": "latitude", + "type": "numeric(10, 8)", + "primaryKey": false, + "notNull": true + }, + "longitude": { + "name": "longitude", + "type": "numeric(11, 8)", + "primaryKey": false, + "notNull": true + }, + "sessions": { + "name": "sessions", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + }, + "presences": { + "name": "presences", + "type": "jsonb", + "primaryKey": false, + "notNull": true, + "default": "'[]'" + }, + "timestamp": { + "name": "timestamp", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": { + "idx_online_users_uuid": { + "name": "idx_online_users_uuid", + "columns": [ + { + "expression": "uuid", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "idx_online_users_timestamp": { + "name": "idx_online_users_timestamp", + "columns": [ + { + "expression": "timestamp", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} diff --git a/apps/api-master/drizzle/meta/_journal.json b/apps/api-master/drizzle/meta/_journal.json index 4aecead..93716a6 100644 --- a/apps/api-master/drizzle/meta/_journal.json +++ b/apps/api-master/drizzle/meta/_journal.json @@ -1,41 +1,41 @@ { - "version": "7", - "dialect": "postgresql", - "entries": [ - { - "idx": 0, - "version": "7", - "when": 1726516195146, - "tag": "0000_flippant_marrow", - "breakpoints": true - }, - { - "idx": 1, - "version": "7", - "when": 1726516348344, - "tag": "0001_white_lifeguard", - "breakpoints": true - }, - { - "idx": 2, - "version": "7", - "when": 1726516660134, - "tag": "0002_new_darkhawk", - "breakpoints": true - }, - { - "idx": 3, - "version": "7", - "when": 1726517073510, - "tag": "0003_narrow_mastermind", - "breakpoints": true - }, - { - "idx": 4, - "version": "7", - "when": 1726517405363, - "tag": "0004_tiresome_puff_adder", - "breakpoints": true - } - ] -} \ No newline at end of file + "version": "7", + "dialect": "postgresql", + "entries": [ + { + "idx": 0, + "version": "7", + "when": 1726516195146, + "tag": "0000_flippant_marrow", + "breakpoints": true + }, + { + "idx": 1, + "version": "7", + "when": 1726516348344, + "tag": "0001_white_lifeguard", + "breakpoints": true + }, + { + "idx": 2, + "version": "7", + "when": 1726516660134, + "tag": "0002_new_darkhawk", + "breakpoints": true + }, + { + "idx": 3, + "version": "7", + "when": 1726517073510, + "tag": "0003_narrow_mastermind", + "breakpoints": true + }, + { + "idx": 4, + "version": "7", + "when": 1726517405363, + "tag": "0004_tiresome_puff_adder", + "breakpoints": true + } + ] +} diff --git a/apps/website/stores/useExtension.ts b/apps/website/stores/useExtension.ts index e16b490..63b6d99 100644 --- a/apps/website/stores/useExtension.ts +++ b/apps/website/stores/useExtension.ts @@ -22,7 +22,6 @@ export const useExtensionStore = defineStore("extension", () => { } } - // eslint-disable-next-line unicorn/consistent-function-scoping function fetchPresences() { window.dispatchEvent(new CustomEvent("PreMiD_GetPresenceList")); }