Skip to content

Various improvement#211

Open
olblak wants to merge 5 commits into
updatecli:mainfrom
olblak:main
Open

Various improvement#211
olblak wants to merge 5 commits into
updatecli:mainfrom
olblak:main

Conversation

@olblak
Copy link
Copy Markdown
Member

@olblak olblak commented Jun 2, 2026

  • add a new function to have uniq storage cache id
  • add helper to get full api url
  • use full api url in homepage
  • filter to use a uniq per domain storage id
  • add button to hide empty

Description

Test

Tested manually running npm run serve with the following configuration

import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'

export default defineConfig(({ mode }) => {
  const env = loadEnv(mode, process.cwd(), '')

  return {
    base: './',
    plugins: [vue()],
    resolve: {
      alias: {
        '@': fileURLToPath(new URL('./src', import.meta.url)),
      },
    },
    server: {
      proxy: {
        '^/api': {
          target: env.VITE_DEV_PROXY_TARGET || 'https://api.uda.sh/updatecli',
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(/^\/api/, '/'),
        },
      },
    },
  }
})

Additional Information

Tradeoff

Potential improvement

olblak added 5 commits June 2, 2026 21:30
Signed-off-by: Olivier Vernin <olivier@vernin.me>
Signed-off-by: Olivier Vernin <olivier@vernin.me>
Signed-off-by: Olivier Vernin <olivier@vernin.me>
Signed-off-by: Olivier Vernin <olivier@vernin.me>
make storage id uniq

Signed-off-by: Olivier Vernin <olivier@vernin.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant