@adminforth/import-export 1.0.2 → 1.2.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.
@@ -0,0 +1,13 @@
1
+
2
+ #!/bin/bash
3
+
4
+ # write npm run output both to console and to build.log
5
+ npm run build 2>&1 | tee build.log
6
+ build_status=${PIPESTATUS[0]}
7
+
8
+ # if exist status from the npm run build is not 0
9
+ # then exit with the status code from the npm run build
10
+ if [ $build_status -ne 0 ]; then
11
+ echo "Build failed. Exiting with status code $build_status"
12
+ exit $build_status
13
+ fi
@@ -0,0 +1,44 @@
1
+ #!/bin/sh
2
+
3
+ set -x
4
+
5
+ COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
6
+
7
+
8
+ if [ "$CI_STEP_STATUS" = "success" ]; then
9
+ MESSAGE="Did a build without issues on \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\`. Commit: _${CI_COMMIT_MESSAGE}_ (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
10
+
11
+ curl -s -X POST -H "Content-Type: application/json" -d '{
12
+ "username": "'"$CI_COMMIT_AUTHOR"'",
13
+ "icon_url": "'"$CI_COMMIT_AUTHOR_AVATAR"'",
14
+ "attachments": [
15
+ {
16
+ "mrkdwn_in": ["text", "pretext"],
17
+ "color": "#36a64f",
18
+ "text": "'"$MESSAGE"'"
19
+ }
20
+ ]
21
+ }' "$DEVELOPERS_SLACK_WEBHOOK"
22
+ exit 0
23
+ fi
24
+ export BUILD_LOG=$(cat ./build.log)
25
+
26
+ BUILD_LOG=$(echo $BUILD_LOG | sed 's/"/\\"/g')
27
+
28
+ MESSAGE="Broke \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\` with commit _${CI_COMMIT_MESSAGE}_ (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
29
+ CODE_BLOCK="\`\`\`$BUILD_LOG\n\`\`\`"
30
+
31
+ echo "Sending slack message to developers $MESSAGE"
32
+ # Send the message
33
+ curl -sS -X POST -H "Content-Type: application/json" -d '{
34
+ "username": "'"$CI_COMMIT_AUTHOR"'",
35
+ "icon_url": "'"$CI_COMMIT_AUTHOR_AVATAR"'",
36
+ "attachments": [
37
+ {
38
+ "mrkdwn_in": ["text", "pretext"],
39
+ "color": "#8A1C12",
40
+ "text": "'"$CODE_BLOCK"'",
41
+ "pretext": "'"$MESSAGE"'"
42
+ }
43
+ ]
44
+ }' "$DEVELOPERS_SLACK_WEBHOOK" 2>&1
@@ -0,0 +1,44 @@
1
+ clone:
2
+ git:
3
+ image: woodpeckerci/plugin-git
4
+ settings:
5
+ partial: false
6
+ depth: 5
7
+
8
+ steps:
9
+ init-secrets:
10
+ when:
11
+ - event: push
12
+ image: infisical/cli
13
+ environment:
14
+ INFISICAL_TOKEN:
15
+ from_secret: VAULT_TOKEN
16
+ commands:
17
+ - infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
18
+ secrets:
19
+ - VAULT_TOKEN
20
+
21
+ release:
22
+ image: node:20
23
+ when:
24
+ - event: push
25
+ volumes:
26
+ - /var/run/docker.sock:/var/run/docker.sock
27
+ commands:
28
+ - apt update && apt install -y rsync
29
+ - export $(cat /woodpecker/deploy.vault.env | xargs)
30
+ - npm clean-install
31
+ - /bin/bash ./.woodpecker/buildRelease.sh
32
+ - npm audit signatures
33
+ - npx semantic-release
34
+
35
+ slack-on-failure:
36
+ when:
37
+ - event: push
38
+ status: [failure, success]
39
+ - event: push
40
+ image: curlimages/curl
41
+ commands:
42
+ - export $(cat /woodpecker/deploy.vault.env | xargs)
43
+ - /bin/sh ./.woodpecker/buildSlackNotify.sh
44
+
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+
2
+ # Changelog
3
+
4
+ The complete changelog is available on the [GitHub Releases page](https://github.com/devforth/adminforth-import-export/releases).
5
+
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Devforth.io
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # AdminForth ImportExport Plugin
2
+
3
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /> <img src="https://woodpecker.devforth.io/api/badges/3848/status.svg" alt="Build Status" /> <a href="https://www.npmjs.com/package/@adminforth/import-export"> <img src="https://img.shields.io/npm/dt/@adminforth/import-export" alt="npm downloads" /></a> <a href="https://www.npmjs.com/package/@adminforth/import-export"><img src="https://img.shields.io/npm/v/@adminforth/import-export" alt="npm version" /></a> <a href="https://www.npmjs.com/package/@adminforth/import-export">
4
+
5
+ Allows to add import/export to csv options to an adminforth table.
6
+
7
+ ## For usage, see [AdminForth ImportExport Documentation](https://adminforth.dev/docs/tutorial/Plugins/import-export/)
package/build.log ADDED
@@ -0,0 +1,14 @@
1
+
2
+ > @adminforth/import-export@1.0.4 build
3
+ > tsc && rsync -av --exclude 'node_modules' custom dist/
4
+
5
+ sending incremental file list
6
+ custom/
7
+ custom/ExportCsv.vue
8
+ custom/ImportCsv.vue
9
+ custom/package-lock.json
10
+ custom/package.json
11
+ custom/tsconfig.json
12
+
13
+ sent 12,494 bytes received 115 bytes 25,218.00 bytes/sec
14
+ total size is 12,074 speedup is 0.96
@@ -1,38 +1,30 @@
1
1
  <template>
2
2
  <div @click="exportCsv" class="cursor-pointer flex gap-2 items-center">
3
- Export {{ meta.select === 'all' ? 'All': 'Filtered' }} to CSV
3
+ {{$t("Export")}} {{ meta.select === 'all' ? $t('All'): $t('Filtered') }} {{$t('to CSV')}}
4
4
 
5
5
  <svg v-if="inProgress"
6
6
  aria-hidden="true" class="w-4 h-4 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/></svg>
7
-
8
7
  </div>
9
8
  </template>
10
9
 
11
-
12
10
  <script setup lang="ts">
13
-
14
- import { onMounted, ref } from 'vue';
11
+ import { ref } from 'vue';
15
12
  import { useCoreStore } from '@/stores/core';
16
- import { callAdminForthApi, loadFile } from '@/utils';
13
+ import { callAdminForthApi } from '@/utils';
17
14
  import { useFiltersStore } from '@/stores/filters';
18
-
15
+ import adminforth from '@/adminforth';
16
+ import Papa from 'papaparse';
19
17
 
20
18
  const filtersStore = useFiltersStore();
19
+ const coreStore = useCoreStore();
20
+ const inProgress = ref(false);
21
21
 
22
22
  const props = defineProps({
23
23
  meta: Object,
24
24
  record: Object,
25
- })
26
-
27
- const inProgress = ref(false);
28
-
29
- const coreStore = useCoreStore();
30
-
31
-
32
- onMounted(async () => {
33
25
  });
34
26
 
35
- function loadFile(data, filename) {
27
+ function downloadFile(data: string, filename: string) {
36
28
  const blob = new Blob([data], { type: 'text/csv' });
37
29
  const url = window.URL.createObjectURL(blob);
38
30
  const a = document.createElement('a');
@@ -43,30 +35,46 @@ function loadFile(data, filename) {
43
35
  }
44
36
 
45
37
  async function exportCsv() {
46
-
47
38
  inProgress.value = true;
48
- const resp = await callAdminForthApi({
49
- path: `/plugin/${props.meta.pluginInstanceId}/export-csv`,
50
- method: 'POST',
51
- body: {
52
- filters: props.meta.select === 'all' ? [] : filtersStore.getFilters(),
53
- sort: filtersStore.getSort(),
39
+ try {
40
+ const resp = await callAdminForthApi({
41
+ path: `/plugin/${props.meta.pluginInstanceId}/export-csv`,
42
+ method: 'POST',
43
+ body: {
44
+ filters: props.meta.select === 'all' ? [] : filtersStore.getFilters(),
45
+ sort: filtersStore.getSort(),
46
+ }
47
+ });
48
+
49
+ if (resp.error) {
50
+ throw new Error(resp.error);
54
51
  }
55
- });
56
- inProgress.value = false;
57
- if (resp.error) {
58
- window.adminforth.alert({
59
- message: resp.error,
60
- })
61
- } else {
62
- loadFile(resp.data, `export-${coreStore.resource.resourceId}-${new Date().toISOString()}.csv`);
63
- window.adminforth.alert({
52
+
53
+ // Parse the CSV data to ensure proper formatting
54
+ const parsedData = Papa.parse(resp.data).data;
55
+
56
+ // Generate properly formatted CSV
57
+ const csvContent = '\ufeff' + Papa.unparse(parsedData, {
58
+ quotes: true, // Force quotes around all fields
59
+ quoteChar: '"',
60
+ escapeChar: '"',
61
+ });
62
+
63
+ // Download the file
64
+ const filename = `export-${coreStore.resource.resourceId}-${new Date().toISOString()}.csv`;
65
+ downloadFile(csvContent, filename);
66
+
67
+ adminforth.alert({
64
68
  message: `Exported ${resp.exportedCount} item${resp.exportedCount > 1 ? 's' : ''} successfully. Check your downloads folder`,
65
- })
69
+ });
70
+ } catch (error) {
71
+ adminforth.alert({
72
+ message: error instanceof Error ? error.message : 'Export failed',
73
+ variant: 'danger'
74
+ });
75
+ } finally {
76
+ inProgress.value = false;
77
+ adminforth.list.closeThreeDotsDropdown();
66
78
  }
67
- window.adminforth.list.closeThreeDotsDropdown();
68
79
  }
69
-
70
-
71
-
72
80
  </script>
@@ -1,52 +1,110 @@
1
1
  <template>
2
- <div @click="importCsv" class="cursor-pointer flex gap-2 items-center">
3
- Import from CSV
4
-
5
- <svg v-if="inProgress"
6
- aria-hidden="true" class="w-4 h-4 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/></svg>
7
-
8
- </div>
2
+ <div @click="importCsv" class="cursor-pointer flex gap-2 items-center">
3
+ {{$t('Import from CSV')}}
4
+
5
+ <svg v-if="inProgress"
6
+ aria-hidden="true" class="w-4 h-4 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/></svg>
7
+ </div>
8
+ <Dialog ref="confirmDialog"
9
+ :header="t('Import Confirmation')"
10
+ :buttons="[
11
+ { label: t('Import & Replace'), onclick: (dialog) => { confirmImport(dialog) } },
12
+ { label: t('Import New Only'), onclick: (dialog) => { confirmImportNewOnly(dialog) } },
13
+ { label: t('Cancel'), onclick: (dialog) => dialog.hide() }
14
+ ]"
15
+ >
16
+ <div v-if="importStats">
17
+ <p>{{ $t('Are you sure you want to continue?') }}</p>
18
+ <p class="mt-2">{{ $t('You are importing {count} records:', { count: importStats.total }) }}</p>
19
+ <ul class="list-disc ml-6 mt-2">
20
+ <li>{{ $t('{count} existing records will be replaced (old records will be lost)', { count: importStats.existingCount }) }}</li>
21
+ <li>{{ $t('{count} new records will be added', { count: importStats.newCount }) }}</li>
22
+ </ul>
23
+ </div>
24
+ </Dialog>
9
25
  </template>
10
26
 
11
27
  <script setup lang="ts">
12
28
  import { ref, Ref } from 'vue';
13
29
  import { callAdminForthApi } from '@/utils';
30
+ import adminforth from '@/adminforth';
31
+ import Papa from 'papaparse';
32
+ import { Dialog } from '@/afcl';
33
+ import { useI18n } from 'vue-i18n';
14
34
 
15
- const inProgress: Ref<boolean> = ref(false);
35
+ const { t } = useI18n();
16
36
 
37
+ const inProgress: Ref<boolean> = ref(false);
38
+ const confirmDialog = ref(null);
39
+ const importStats = ref(null);
40
+ const pendingData = ref(null);
17
41
  const props = defineProps({
18
42
  meta: Object,
19
43
  record: Object,
20
44
  });
21
45
 
22
- async function postData(data: Record<string, string[]>) {
23
- console.log('postData 1 ', data);
46
+ async function confirmImport(dialog) {
47
+ dialog.hide();
48
+ await postData(pendingData.value);
49
+ }
50
+
51
+ async function checkRecords(data: Record<string, string[]>) {
52
+ const resp = await callAdminForthApi({
53
+ path: `/plugin/${props.meta.pluginInstanceId}/check-records`,
54
+ method: 'POST',
55
+ body: { data }
56
+ });
57
+
58
+ return resp;
59
+ }
60
+
61
+ async function confirmImportNewOnly(dialog) {
62
+ dialog.hide();
63
+ await postDataNewOnly(pendingData.value);
64
+ }
24
65
 
66
+ async function postData(data: Record<string, string[]>, skipDuplicates: boolean = false) {
25
67
  const resp = await callAdminForthApi({
26
68
  path: `/plugin/${props.meta.pluginInstanceId}/import-csv`,
27
69
  method: 'POST',
28
- body: {
29
- data
30
- }
70
+ body: { data }
31
71
  });
32
72
 
33
73
  inProgress.value = false;
34
74
 
35
- if (resp.importedCount > 0) {
36
- window.adminforth.list.refresh();
75
+ if (resp.importedCount > 0 || resp.updatedCount > 0) {
76
+ adminforth.list.refresh();
37
77
  }
38
- window.adminforth.alert({
39
- message: `Imported count ${resp.importedCount || 0} records. ${resp.errors?.length ? `Errors: ${resp.errors.join(', ')}` : ''}`,
78
+ adminforth.alert({
79
+ message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `Errors: ${resp.errors.join(', ')}` : ''}`,
40
80
  variant: resp.errors?.length ? (
41
81
  resp.importedCount ? 'warning' : 'danger'
42
82
  ) : 'success'
43
83
  });
44
84
 
45
- window.adminforth.list.closeThreeDotsDropdown();
85
+ adminforth.list.closeThreeDotsDropdown();
86
+ }
87
+
88
+ async function postDataNewOnly(data: Record<string, string[]>) {
89
+ const resp = await callAdminForthApi({
90
+ path: `/plugin/${props.meta.pluginInstanceId}/import-csv-new-only`,
91
+ method: 'POST',
92
+ body: { data }
93
+ });
94
+
95
+ inProgress.value = false;
96
+ if (resp.importedCount > 0) {
97
+ adminforth.list.refresh();
98
+ }
99
+ adminforth.alert({
100
+ message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `Errors: ${resp.errors.join(', ')}` : ''}`,
101
+ variant: resp.errors?.length ? 'warning' : 'success'
102
+ });
103
+
104
+ adminforth.list.closeThreeDotsDropdown();
46
105
  }
47
106
 
48
107
  async function importCsv() {
49
- // create file input and open it (with csv type)
50
108
  inProgress.value = false;
51
109
  const fileInput = document.createElement('input');
52
110
 
@@ -61,33 +119,51 @@ async function importCsv() {
61
119
  inProgress.value = false;
62
120
  return;
63
121
  }
64
-
65
- // post data in format, plain json
66
- // data is in format {[columnName]: [value1, value2, value3...], [columnName2]: [value1, value2, value3...]}
67
- const data = {};
68
122
  const reader = new FileReader();
69
123
  reader.onload = async (e) => {
70
- const text = e.target.result as string;
71
-
72
- const lines = text.split('\n');
73
- const columns = lines[0].split(',');
74
- for (let i = 1; i < lines.length; i++) {
75
- const values = lines[i].split(',');
76
- for (let j = 0; j < columns.length; j++) {
77
- if (!data[columns[j]]) {
78
- data[columns[j]] = [];
124
+ try {
125
+ const text = e.target.result as string;
126
+
127
+ Papa.parse(text, {
128
+ header: true,
129
+ skipEmptyLines: true,
130
+
131
+ complete: async (results) => {
132
+ if (results.errors.length > 0) {
133
+ throw new Error(`CSV parsing errors: ${results.errors.map(e => e.message).join(', ')}`);
134
+ }
135
+ const data: Record<string, string[]> = {};
136
+ const rows = results.data as Record<string, string>[];
137
+
138
+ if (rows.length === 0) {
139
+ throw new Error('No data rows found in CSV');
140
+ }
141
+ Object.keys(rows[0]).forEach(column => {
142
+ data[column] = rows.map(row => row[column]);
143
+ });
144
+
145
+ // Store data for later use
146
+ pendingData.value = data;
147
+
148
+ // Check records and show confirmation
149
+ const stats = await checkRecords(data);
150
+ importStats.value = stats;
151
+ confirmDialog.value?.open();
152
+ inProgress.value = false;
153
+ },
154
+ error: (error) => {
155
+ throw new Error(`Failed to parse CSV: ${error.message}`);
79
156
  }
80
- data[columns[j]].push(values[j]);
81
- }
157
+ });
158
+ } catch (error) {
159
+ inProgress.value = false;
160
+ adminforth.alert({
161
+ message: `Error processing CSV: ${error.message}`,
162
+ variant: 'danger'
163
+ });
82
164
  }
83
- await postData(data);
84
165
  };
85
166
  reader.readAsText(file);
86
-
87
-
88
-
89
167
  };
90
-
91
168
  }
92
-
93
169
  </script>
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "custom",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "custom",
9
+ "version": "1.0.0",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "@types/papaparse": "^5.3.15",
13
+ "papaparse": "^5.5.2"
14
+ }
15
+ },
16
+ "node_modules/@types/node": {
17
+ "version": "22.13.10",
18
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz",
19
+ "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==",
20
+ "license": "MIT",
21
+ "dependencies": {
22
+ "undici-types": "~6.20.0"
23
+ }
24
+ },
25
+ "node_modules/@types/papaparse": {
26
+ "version": "5.3.15",
27
+ "resolved": "https://registry.npmjs.org/@types/papaparse/-/papaparse-5.3.15.tgz",
28
+ "integrity": "sha512-JHe6vF6x/8Z85nCX4yFdDslN11d+1pr12E526X8WAfhadOeaOTx5AuIkvDKIBopfvlzpzkdMx4YyvSKCM9oqtw==",
29
+ "license": "MIT",
30
+ "dependencies": {
31
+ "@types/node": "*"
32
+ }
33
+ },
34
+ "node_modules/papaparse": {
35
+ "version": "5.5.2",
36
+ "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.5.2.tgz",
37
+ "integrity": "sha512-PZXg8UuAc4PcVwLosEEDYjPyfWnTEhOrUfdv+3Bx+NuAb+5NhDmXzg5fHWmdCh1mP5p7JAZfFr3IMQfcntNAdA==",
38
+ "license": "MIT"
39
+ },
40
+ "node_modules/undici-types": {
41
+ "version": "6.20.0",
42
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
43
+ "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
44
+ "license": "MIT"
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "custom",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": "",
12
+ "dependencies": {
13
+ "@types/papaparse": "^5.3.15",
14
+ "papaparse": "^5.5.2"
15
+ }
16
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".", // This should point to your project root
4
+ "paths": {
5
+ "@/*": [
6
+ // "node_modules/adminforth/dist/spa/src/*"
7
+ "../../../spa/src/*"
8
+ ],
9
+ "*": [
10
+ // "node_modules/adminforth/dist/spa/node_modules/*"
11
+ "../../../spa/node_modules/*"
12
+ ],
13
+ "@@/*": [
14
+ // "node_modules/adminforth/dist/spa/src/*"
15
+ "."
16
+ ]
17
+ }
18
+ }
19
+ }