archive lib installs, having cors issues

This commit is contained in:
2025-10-30 18:13:03 +00:00
parent 52d7dc7a87
commit f039ba219d
17 changed files with 44 additions and 119 deletions

View File

@@ -1,5 +1,5 @@
{
"recommendations": [
"Webnative.webnative"
]
}
"recommendations": [
"Webnative.webnative"
]
}

3
android/.idea/.gitignore generated vendored
View File

@@ -1,3 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidProjectSystem">
<option name="providerId" value="com.android.tools.idea.GradleProjectSystem" />
</component>
</project>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="21" />
</component>
</project>

View File

@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetSelector">
<selectionStates>
<SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" />
<DropdownSelection timestamp="2025-10-14T17:00:16.525383985Z">
<Target type="DEFAULT_BOOT">
<handle>
<DeviceId pluginId="LocalEmulator" identifier="path=/home/chptr/.android/avd/Medium_Phone.avd" />
</handle>
</Target>
</DropdownSelection>
<DialogSelection />
</SelectionState>
</selectionStates>
</component>
</project>

View File

@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DeviceTable">
<option name="columnSorters">
<list>
<ColumnSorterState>
<option name="column" value="Name" />
<option name="order" value="ASCENDING" />
</ColumnSorterState>
</list>
</option>
</component>
</project>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectMigrations">
<option name="MigrateToGradleLocalJavaHome">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
</component>
</project>

View File

@@ -1,9 +0,0 @@
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

View File

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" />
<option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" />
<option value="com.intellij.execution.junit.PatternConfigurationProducer" />
<option value="com.intellij.execution.junit.TestInClassConfigurationProducer" />
<option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" />
<option value="com.intellij.execution.junit.testDiscovery.JUnitTestDiscoveryConfigurationProducer" />
<option value="org.jetbrains.kotlin.idea.junit.KotlinJUnitRunConfigurationProducer" />
<option value="org.jetbrains.kotlin.idea.junit.KotlinPatternConfigurationProducer" />
</set>
</option>
</component>
</project>

View File

@@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.0'
classpath 'com.android.tools.build:gradle:8.7.2'
classpath 'com.google.gms:google-services:4.4.2'
// NOTE: Do not place your application dependencies here; they belong

View File

@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

23
package-lock.json generated
View File

@@ -18,14 +18,14 @@
"@ionic/vue-router": "^8.0.0",
"ionicons": "^7.0.0",
"pinia": "^3.0.3",
"updaterweblibrary": "git+ssh://git@git.emaker.limited:MicrocontrollerCD/UpdaterWebLibrary.git#main",
"updaterweblibrary": "^1.0.4",
"vue": "^3.3.0",
"vue-router": "^4.2.0"
},
"devDependencies": {
"@capacitor/cli": "7.4.3",
"@vitejs/plugin-legacy": "^5.0.0",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue": "^4.6.2",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.3.0",
"cypress": "^13.5.0",
@@ -2822,6 +2822,15 @@
"node": ">=14"
}
},
"node_modules/@rgrove/parse-xml": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/@rgrove/parse-xml/-/parse-xml-4.2.0.tgz",
"integrity": "sha512-UuBOt7BOsKVOkFXRe4Ypd/lADuNIfqJXv8GvHqtXaTYXPPKkj2nS2zPllVsrtRjcomDhIJVBnZwfmlI222WH8g==",
"license": "ISC",
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.44.0",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.0.tgz",
@@ -9315,9 +9324,13 @@
}
},
"node_modules/updaterweblibrary": {
"version": "1.0.1",
"resolved": "git+ssh://git@git.emaker.limited:MicrocontrollerCD/UpdaterWebLibrary.git#c18f6d3ffe2ba790addcf0f219ca595a855f873d",
"license": "MIT"
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/updaterweblibrary/-/updaterweblibrary-1.0.4.tgz",
"integrity": "sha512-+8dYAx5ieJivYBNHzWfQZmEiNvojAGzBUa+PoYe7KjfVIsHcf9HOTTWtNarPwUK+yk87UCNr8uqPoctYpMmOAw==",
"license": "MIT",
"dependencies": {
"@rgrove/parse-xml": "^4.2.0"
}
},
"node_modules/uri-js": {
"version": "4.4.1",

View File

@@ -6,6 +6,7 @@
"scripts": {
"dev": "ionic serve",
"build": "vue-tsc && vite build && npx cap sync",
"android": "npm run build && npx cap run android",
"preview": "vite preview",
"test:e2e": "cypress run",
"test:unit": "vitest",
@@ -22,13 +23,14 @@
"@ionic/vue-router": "^8.0.0",
"ionicons": "^7.0.0",
"pinia": "^3.0.3",
"updaterweblibrary": "^1.0.4",
"vue": "^3.3.0",
"vue-router": "^4.2.0"
},
"devDependencies": {
"@capacitor/cli": "7.4.3",
"@vitejs/plugin-legacy": "^5.0.0",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue": "^4.6.2",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.3.0",
"cypress": "^13.5.0",

View File

@@ -17,7 +17,9 @@ const back = () => {
}
const setSource = () => {
console.log(url.value)
archive.setUrl(url.value);
archive.testArchive();
}
</script>

View File

@@ -13,10 +13,10 @@ const useArchiveStore = defineStore("archive", {
},
actions: {
setUrl(value: string): void {
this.updater = new Updater(value, "rss");
this.updater = new Updater(value, "rss");
},
async testArchive(): Promise<void> {
this.updater.getArchive();
console.log(await this.updater.getArchive());
}
}
});

13
vite.config.js Normal file
View File

@@ -0,0 +1,13 @@
import vue from '@vitejs/plugin-vue'
import path from "path";
export default {
plugins: [
vue()
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src")
}
}
}

View File

@@ -1,23 +0,0 @@
/// <reference types="vitest" />
import legacy from '@vitejs/plugin-legacy'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
legacy()
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
test: {
globals: true,
environment: 'jsdom'
}
})