diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index a84fb81..654df84 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -7,16 +7,16 @@ services:
depends_on:
- db
environment:
- QUARKUS_DATASOURCE_JDBC_URL:
- QUARKUS_DATASOURCE_USERNAME:
- QUARKUS_DATASOURCE_PASSWORD:
- QUARKUS_OIDC_AUTH_SERVER_URL:
- QUARKUS_OIDC_CLIENT_ID:
- QUARKUS_OIDC_CREDENTIALS_SECRET:
- QUARKUS_OIDC_TOKEN_AUDIENCE:
- QUARKUS_OIDC_TOKEN_ISSUER:
+ QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://db:5432/dex
+ QUARKUS_DATASOURCE_USERNAME: dex
+ QUARKUS_DATASOURCE_PASSWORD: dex
+ QUARKUS_OIDC_AUTH_SERVER_URL: https://auth.smoothbrain.win/application/o/dex-be/
+ QUARKUS_OIDC_CLIENT_ID: wUSuMpZlbop44mij54Mshxuf4CMuXdR9h1Jv9Ixc
+ QUARKUS_OIDC_CREDENTIALS_SECRET: CY8i3LM5mqHRUKAie6EscEi8fteiehYgy0FC2HtY79U1TxhRcCde9FfFB3m05DYvOTqI4xufRmspI5N5uqzgXkAljoe7BTjXw1Hhgxz0e5KH0K1jADhpO5a4lczoifjl
+ QUARKUS_OIDC_TOKEN_AUDIENCE: K202NAqkgfjceLZr28gAVQgJDc6RjZfdrE1jNx0K,wUSuMpZlbop44mij54Mshxuf4CMuXdR9h1Jv9Ixc
+ QUARKUS_OIDC_TOKEN_ISSUER: https://auth.smoothbrain.win/application/o/dex/
QUARKUS_HTTP_INSECURE_REQUESTS: enabled
- DEX_FILE_PATH:
+ DEX_FILE_PATH: /data/files
networks:
- dex
diff --git a/src/App.vue b/src/App.vue
index 078c7f8..fef9fab 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -35,6 +35,10 @@
+
@@ -44,9 +48,11 @@ import {ref} from "vue";
import {useRouter} from "vue-router";
import Toast from 'primevue/toast';
import {useAuthStore} from "./stores/auth.ts";
+import ImportModal from "@/components/ImportModal.vue";
const authStore = useAuthStore();
const router = useRouter();
+const importModalVisibility = ref(false);
const items = ref([
{
@@ -83,6 +89,11 @@ const items = ref([
command: () => {
router.push('/jobs');
}
+ },
+ {
+ label: 'Import Set',
+ icon: 'pi pi-mobile',
+ command: () => importModalVisibility.value = true
}
]);
\ No newline at end of file
diff --git a/src/api/openapi/api.ts b/src/api/openapi/api.ts
index f9563de..dec07b7 100644
--- a/src/api/openapi/api.ts
+++ b/src/api/openapi/api.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/base.ts b/src/api/openapi/base.ts
index d94f454..05c55aa 100644
--- a/src/api/openapi/base.ts
+++ b/src/api/openapi/base.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/common.ts b/src/api/openapi/common.ts
index e29d39d..3377d8f 100644
--- a/src/api/openapi/common.ts
+++ b/src/api/openapi/common.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/configuration.ts b/src/api/openapi/configuration.ts
index 16b514c..b243782 100644
--- a/src/api/openapi/configuration.ts
+++ b/src/api/openapi/configuration.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/docs/SetService.md b/src/api/openapi/docs/SetService.md
index 01bbe49..56a4a4a 100644
--- a/src/api/openapi/docs/SetService.md
+++ b/src/api/openapi/docs/SetService.md
@@ -6,8 +6,8 @@ All URIs are relative to *http://localhost*
|------------- | ------------- | -------------|
|[**apiSetsNameGet**](#apisetsnameget) | **GET** /api/sets/{name} | Find Set By Name|
|[**apiSetsNameNewGet**](#apisetsnamenewget) | **GET** /api/sets/{name}/new | Fetch And Persist From Upstream|
-|[**apiSetsNameScrapeGet**](#apisetsnamescrapeget) | **GET** /api/sets/{name}/scrape | Scrape And Persist From Upstream|
|[**getCardSetPage**](#getcardsetpage) | **GET** /api/sets | Get a page of Card Sets with optional name query parameter|
+|[**scrapeSetByName**](#scrapesetbyname) | **GET** /api/sets/{name}/scrape | Scrape a CardSet via name query parameter|
# **apiSetsNameGet**
> SetDto apiSetsNameGet()
@@ -102,56 +102,6 @@ No authorization required
- **Accept**: application/json
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-|**200** | Set retrieved | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **apiSetsNameScrapeGet**
-> apiSetsNameScrapeGet()
-
-
-### Example
-
-```typescript
-import {
- SetService,
- Configuration
-} from './api';
-
-const configuration = new Configuration();
-const apiInstance = new SetService(configuration);
-
-let name: string; // (default to undefined)
-
-const { status, data } = await apiInstance.apiSetsNameScrapeGet(
- name
-);
-```
-
-### Parameters
-
-|Name | Type | Description | Notes|
-|------------- | ------------- | ------------- | -------------|
-| **name** | [**string**] | | defaults to undefined|
-
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
@@ -215,3 +165,53 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **scrapeSetByName**
+> scrapeSetByName()
+
+
+### Example
+
+```typescript
+import {
+ SetService,
+ Configuration
+} from './api';
+
+const configuration = new Configuration();
+const apiInstance = new SetService(configuration);
+
+let name: string; // (default to undefined)
+
+const { status, data } = await apiInstance.scrapeSetByName(
+ name
+);
+```
+
+### Parameters
+
+|Name | Type | Description | Notes|
+|------------- | ------------- | ------------- | -------------|
+| **name** | [**string**] | | defaults to undefined|
+
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+|**200** | Set retrieved | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/src/api/openapi/index.ts b/src/api/openapi/index.ts
index a1796e9..6737209 100644
--- a/src/api/openapi/index.ts
+++ b/src/api/openapi/index.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/attribute.ts b/src/api/openapi/model/attribute.ts
index 3395d3f..faa19cb 100644
--- a/src/api/openapi/model/attribute.ts
+++ b/src/api/openapi/model/attribute.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/card-page-search-request.ts b/src/api/openapi/model/card-page-search-request.ts
index b15abb8..1aed3b8 100644
--- a/src/api/openapi/model/card-page-search-request.ts
+++ b/src/api/openapi/model/card-page-search-request.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/card-print.ts b/src/api/openapi/model/card-print.ts
index a911bf0..c2990ea 100644
--- a/src/api/openapi/model/card-print.ts
+++ b/src/api/openapi/model/card-print.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/card-type.ts b/src/api/openapi/model/card-type.ts
index 0307e89..3222efb 100644
--- a/src/api/openapi/model/card-type.ts
+++ b/src/api/openapi/model/card-type.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/card-upstream-fetch-request.ts b/src/api/openapi/model/card-upstream-fetch-request.ts
index d035a8c..67c3c48 100644
--- a/src/api/openapi/model/card-upstream-fetch-request.ts
+++ b/src/api/openapi/model/card-upstream-fetch-request.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/card.ts b/src/api/openapi/model/card.ts
index c45b484..e2ba8d7 100644
--- a/src/api/openapi/model/card.ts
+++ b/src/api/openapi/model/card.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/deck-create-request.ts b/src/api/openapi/model/deck-create-request.ts
index e01846b..7687c26 100644
--- a/src/api/openapi/model/deck-create-request.ts
+++ b/src/api/openapi/model/deck-create-request.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/deck.ts b/src/api/openapi/model/deck.ts
index cd7e7a8..af55207 100644
--- a/src/api/openapi/model/deck.ts
+++ b/src/api/openapi/model/deck.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/job-dto.ts b/src/api/openapi/model/job-dto.ts
index e1e8675..48c8c2b 100644
--- a/src/api/openapi/model/job-dto.ts
+++ b/src/api/openapi/model/job-dto.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/job-status.ts b/src/api/openapi/model/job-status.ts
index 5f78f43..6ac3620 100644
--- a/src/api/openapi/model/job-status.ts
+++ b/src/api/openapi/model/job-status.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/job-type.ts b/src/api/openapi/model/job-type.ts
index 04106bd..3e7e7fb 100644
--- a/src/api/openapi/model/job-type.ts
+++ b/src/api/openapi/model/job-type.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/link-arrow.ts b/src/api/openapi/model/link-arrow.ts
index 069b3f9..5b11f64 100644
--- a/src/api/openapi/model/link-arrow.ts
+++ b/src/api/openapi/model/link-arrow.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/monster-card-sub-type.ts b/src/api/openapi/model/monster-card-sub-type.ts
index 17b527b..2eb74db 100644
--- a/src/api/openapi/model/monster-card-sub-type.ts
+++ b/src/api/openapi/model/monster-card-sub-type.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/monster-card-type.ts b/src/api/openapi/model/monster-card-type.ts
index d7357e9..aa35623 100644
--- a/src/api/openapi/model/monster-card-type.ts
+++ b/src/api/openapi/model/monster-card-type.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/monster-card.ts b/src/api/openapi/model/monster-card.ts
index 3070cf6..6eb872f 100644
--- a/src/api/openapi/model/monster-card.ts
+++ b/src/api/openapi/model/monster-card.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/monster-type.ts b/src/api/openapi/model/monster-type.ts
index 133e1b4..43c71db 100644
--- a/src/api/openapi/model/monster-type.ts
+++ b/src/api/openapi/model/monster-type.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/page-card-dto.ts b/src/api/openapi/model/page-card-dto.ts
index 6b46712..113be25 100644
--- a/src/api/openapi/model/page-card-dto.ts
+++ b/src/api/openapi/model/page-card-dto.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/page-card-print-dto.ts b/src/api/openapi/model/page-card-print-dto.ts
index 88d5db4..6a09690 100644
--- a/src/api/openapi/model/page-card-print-dto.ts
+++ b/src/api/openapi/model/page-card-print-dto.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/page-deck-dto.ts b/src/api/openapi/model/page-deck-dto.ts
index 3f4df94..7f4ddda 100644
--- a/src/api/openapi/model/page-deck-dto.ts
+++ b/src/api/openapi/model/page-deck-dto.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/page-job-dto.ts b/src/api/openapi/model/page-job-dto.ts
index 5f1c049..39114e8 100644
--- a/src/api/openapi/model/page-job-dto.ts
+++ b/src/api/openapi/model/page-job-dto.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/page-set-dto.ts b/src/api/openapi/model/page-set-dto.ts
index b624978..781058a 100644
--- a/src/api/openapi/model/page-set-dto.ts
+++ b/src/api/openapi/model/page-set-dto.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/page.ts b/src/api/openapi/model/page.ts
index 22e0d7c..a789b96 100644
--- a/src/api/openapi/model/page.ts
+++ b/src/api/openapi/model/page.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/region-code-alias.ts b/src/api/openapi/model/region-code-alias.ts
index e0d7747..3696a14 100644
--- a/src/api/openapi/model/region-code-alias.ts
+++ b/src/api/openapi/model/region-code-alias.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/region.ts b/src/api/openapi/model/region.ts
index dff8f16..622097e 100644
--- a/src/api/openapi/model/region.ts
+++ b/src/api/openapi/model/region.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/regional-set.ts b/src/api/openapi/model/regional-set.ts
index 11fe2f8..2649ee6 100644
--- a/src/api/openapi/model/regional-set.ts
+++ b/src/api/openapi/model/regional-set.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/set-dto.ts b/src/api/openapi/model/set-dto.ts
index ed782c6..e7c2a32 100644
--- a/src/api/openapi/model/set-dto.ts
+++ b/src/api/openapi/model/set-dto.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/spell-card-type.ts b/src/api/openapi/model/spell-card-type.ts
index b6185d5..4ee866d 100644
--- a/src/api/openapi/model/spell-card-type.ts
+++ b/src/api/openapi/model/spell-card-type.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/spell-card.ts b/src/api/openapi/model/spell-card.ts
index a5c621f..cdaaf81 100644
--- a/src/api/openapi/model/spell-card.ts
+++ b/src/api/openapi/model/spell-card.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/trap-card-type.ts b/src/api/openapi/model/trap-card-type.ts
index d80c0bc..910f2e8 100644
--- a/src/api/openapi/model/trap-card-type.ts
+++ b/src/api/openapi/model/trap-card-type.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/model/trap-card.ts b/src/api/openapi/model/trap-card.ts
index 750c1c5..3cedd3a 100644
--- a/src/api/openapi/model/trap-card.ts
+++ b/src/api/openapi/model/trap-card.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/service/card-print-service.ts b/src/api/openapi/service/card-print-service.ts
index a899487..8bc6147 100644
--- a/src/api/openapi/service/card-print-service.ts
+++ b/src/api/openapi/service/card-print-service.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/service/card-service.ts b/src/api/openapi/service/card-service.ts
index 93bc573..c6033f1 100644
--- a/src/api/openapi/service/card-service.ts
+++ b/src/api/openapi/service/card-service.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/service/deck-service.ts b/src/api/openapi/service/deck-service.ts
index 203dde7..dc18f9f 100644
--- a/src/api/openapi/service/deck-service.ts
+++ b/src/api/openapi/service/deck-service.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/service/job-service.ts b/src/api/openapi/service/job-service.ts
index 9fdff7a..c3f9fc9 100644
--- a/src/api/openapi/service/job-service.ts
+++ b/src/api/openapi/service/job-service.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
diff --git a/src/api/openapi/service/set-service.ts b/src/api/openapi/service/set-service.ts
index 2cae1d1..3633dbe 100644
--- a/src/api/openapi/service/set-service.ts
+++ b/src/api/openapi/service/set-service.ts
@@ -4,7 +4,7 @@
* dex API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
- * The version of the OpenAPI document: 0.0.1
+ * The version of the OpenAPI document: 0.0.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -90,40 +90,6 @@ export const SetServiceAxiosParamCreator = function (configuration?: Configurati
- setSearchParams(localVarUrlObj, localVarQueryParameter);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @summary Scrape And Persist From Upstream
- * @param {string} name
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSetsNameScrapeGet: async (name: string, options: RawAxiosRequestConfig = {}): Promise => {
- // verify required parameter 'name' is not null or undefined
- assertParamExists('apiSetsNameScrapeGet', 'name', name)
- const localVarPath = `/api/sets/{name}/scrape`
- .replace(`{${"name"}}`, encodeURIComponent(String(name)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -169,6 +135,40 @@ export const SetServiceAxiosParamCreator = function (configuration?: Configurati
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary Scrape a CardSet via name query parameter
+ * @param {string} name
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ scrapeSetByName: async (name: string, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'name' is not null or undefined
+ assertParamExists('scrapeSetByName', 'name', name)
+ const localVarPath = `/api/sets/{name}/scrape`
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -214,19 +214,6 @@ export const SetServiceFp = function(configuration?: Configuration) {
const localVarOperationServerBasePath = operationServerMap['SetService.apiSetsNameNewGet']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
- /**
- *
- * @summary Scrape And Persist From Upstream
- * @param {string} name
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async apiSetsNameScrapeGet(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiSetsNameScrapeGet(name, options);
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
- const localVarOperationServerBasePath = operationServerMap['SetService.apiSetsNameScrapeGet']?.[localVarOperationServerIndex]?.url;
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
- },
/**
*
* @summary Get a page of Card Sets with optional name query parameter
@@ -242,6 +229,19 @@ export const SetServiceFp = function(configuration?: Configuration) {
const localVarOperationServerBasePath = operationServerMap['SetService.getCardSetPage']?.[localVarOperationServerIndex]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
+ /**
+ *
+ * @summary Scrape a CardSet via name query parameter
+ * @param {string} name
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async scrapeSetByName(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.scrapeSetByName(name, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['SetService.scrapeSetByName']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
}
};
@@ -272,16 +272,6 @@ export const SetServiceFactory = function (configuration?: Configuration, basePa
apiSetsNameNewGet(requestParameters: SetServiceApiSetsNameNewGetRequest, options?: RawAxiosRequestConfig): AxiosPromise> {
return localVarFp.apiSetsNameNewGet(requestParameters.name, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @summary Scrape And Persist From Upstream
- * @param {SetServiceApiSetsNameScrapeGetRequest} requestParameters Request parameters.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- apiSetsNameScrapeGet(requestParameters: SetServiceApiSetsNameScrapeGetRequest, options?: RawAxiosRequestConfig): AxiosPromise {
- return localVarFp.apiSetsNameScrapeGet(requestParameters.name, options).then((request) => request(axios, basePath));
- },
/**
*
* @summary Get a page of Card Sets with optional name query parameter
@@ -292,6 +282,16 @@ export const SetServiceFactory = function (configuration?: Configuration, basePa
getCardSetPage(requestParameters: SetServiceGetCardSetPageRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise {
return localVarFp.getCardSetPage(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @summary Scrape a CardSet via name query parameter
+ * @param {SetServiceScrapeSetByNameRequest} requestParameters Request parameters.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ scrapeSetByName(requestParameters: SetServiceScrapeSetByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise {
+ return localVarFp.scrapeSetByName(requestParameters.name, options).then((request) => request(axios, basePath));
+ },
};
};
@@ -323,20 +323,6 @@ export interface SetServiceApiSetsNameNewGetRequest {
readonly name: string
}
-/**
- * Request parameters for apiSetsNameScrapeGet operation in SetService.
- * @export
- * @interface SetServiceApiSetsNameScrapeGetRequest
- */
-export interface SetServiceApiSetsNameScrapeGetRequest {
- /**
- *
- * @type {string}
- * @memberof SetServiceApiSetsNameScrapeGet
- */
- readonly name: string
-}
-
/**
* Request parameters for getCardSetPage operation in SetService.
* @export
@@ -365,6 +351,20 @@ export interface SetServiceGetCardSetPageRequest {
readonly pageSize?: number
}
+/**
+ * Request parameters for scrapeSetByName operation in SetService.
+ * @export
+ * @interface SetServiceScrapeSetByNameRequest
+ */
+export interface SetServiceScrapeSetByNameRequest {
+ /**
+ *
+ * @type {string}
+ * @memberof SetServiceScrapeSetByName
+ */
+ readonly name: string
+}
+
/**
* SetService - object-oriented interface
* @export
@@ -396,18 +396,6 @@ export class SetService extends BaseAPI {
return SetServiceFp(this.configuration).apiSetsNameNewGet(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
}
- /**
- *
- * @summary Scrape And Persist From Upstream
- * @param {SetServiceApiSetsNameScrapeGetRequest} requestParameters Request parameters.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof SetService
- */
- public apiSetsNameScrapeGet(requestParameters: SetServiceApiSetsNameScrapeGetRequest, options?: RawAxiosRequestConfig) {
- return SetServiceFp(this.configuration).apiSetsNameScrapeGet(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
- }
-
/**
*
* @summary Get a page of Card Sets with optional name query parameter
@@ -419,5 +407,17 @@ export class SetService extends BaseAPI {
public getCardSetPage(requestParameters: SetServiceGetCardSetPageRequest = {}, options?: RawAxiosRequestConfig) {
return SetServiceFp(this.configuration).getCardSetPage(requestParameters.name, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
}
+
+ /**
+ *
+ * @summary Scrape a CardSet via name query parameter
+ * @param {SetServiceScrapeSetByNameRequest} requestParameters Request parameters.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof SetService
+ */
+ public scrapeSetByName(requestParameters: SetServiceScrapeSetByNameRequest, options?: RawAxiosRequestConfig) {
+ return SetServiceFp(this.configuration).scrapeSetByName(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
+ }
}
diff --git a/src/components.d.ts b/src/components.d.ts
index ebadcd4..d219f24 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -19,11 +19,13 @@ declare module 'vue' {
Column: typeof import('primevue/column')['default']
CustomTag: typeof import('./components/CustomTag.vue')['default']
DataTable: typeof import('primevue/datatable')['default']
+ Dialog: typeof import('primevue/dialog')['default']
Divider: typeof import('primevue/divider')['default']
DynamicAsset: typeof import('./components/DynamicAsset.vue')['default']
Fieldset: typeof import('primevue/fieldset')['default']
FloatLabel: typeof import('primevue/floatlabel')['default']
Image: typeof import('primevue/image')['default']
+ ImportModal: typeof import('./components/ImportModal.vue')['default']
InputNumber: typeof import('primevue/inputnumber')['default']
InputText: typeof import('primevue/inputtext')['default']
LinkArrowsComponent: typeof import('./components/LinkArrowsComponent.vue')['default']
diff --git a/src/components/ImportModal.vue b/src/components/ImportModal.vue
new file mode 100644
index 0000000..2cce38e
--- /dev/null
+++ b/src/components/ImportModal.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main.ts b/src/main.ts
index d9ac92c..e225fa1 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -26,7 +26,7 @@ import {useAuthStore} from "./stores/auth.ts";
import SetsView from "./views/set/SetsView.vue";
import JobsView from "./views/JobsView.vue";
import {definePreset} from "@primeuix/themes";
-import {getApiUrl, initConfig} from "@/util/config.ts";
+import {getApiUrl, getConfig, initConfig} from "@/util/config.ts";
import axios from "axios";
// Initialize configuration from window object
@@ -141,14 +141,12 @@ app.use(ToastService)
let apiUrl: string | undefined
-if (!getApiUrl()) {
- apiUrl = `http://${getApiUrl()}`
-} else {
- apiUrl = "http://localhost:7070"
-}
+const devProxy = import.meta.env.DEV && !import.meta.env.VITE_API_HOST && !import.meta.env.VITE_API_PORT
+ ? ''
+ : `http://${getApiUrl()}`
const axiosInstance = axios.create({
- baseURL: apiUrl,
+ baseURL: devProxy,
headers: {
'Content-Type': 'application/json'
}
diff --git a/vite.config.ts b/vite.config.ts
index 5019edb..5d3be5a 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -24,6 +24,13 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
}
},
+ proxy: {
+ '/api': {
+ target: 'http://localhost:8080',
+ changeOrigin: true,
+ secure: false,
+ }
+ },
build: {
// @ts-ignore
assetsInclude: [