需求功能描述 #1

Closed
opened 2024-10-05 02:51:47 +08:00 by abearxiong · 1 comment
Owner

应用上传

当应用上传后,管理所有的上传的文件,应用可以被设置成单页面应用,或者其他的类型。

根据路由配置获取文件

缓存内容,如何没有获取到内容,则重定向到index.html页面。如果有内容,则返回具体的内容。(命中和缓存暂时不管)

版本重定向,如果是0.0.1的版本,把0.0.1的名称去掉等等。

demo

应用的配置,每一个用户用自己的路径。(可以配置无用户app)

demo v0.0.1

  • index.html
  • index.js
  • index.css

这个是单页面应用,然后如果打开了其他的路径,重定向到index.html

user/demo/index.html
user/demo/index.js
user/demo/index.css
是实际的访问路径

但是在user/demo/a这个路由的时候,重定向到index.html这个页面。

真实的路径可能是数据库存储的路径位置https://a.b/demo/v0.0.1/index.html等等

同时demo可能也不是固定的demo的path,可能是其他的

根据user和demo这两个key去获取对应的资源。 先暂时不考虑过期和失效问题。

## 应用上传 当应用上传后,管理所有的上传的文件,应用可以被设置成单页面应用,或者其他的类型。 ## 根据路由配置获取文件 缓存内容,如何没有获取到内容,则重定向到index.html页面。如果有内容,则返回具体的内容。(命中和缓存暂时不管) 版本重定向,如果是0.0.1的版本,把0.0.1的名称去掉等等。 ## demo 应用的配置,每一个用户用自己的路径。(可以配置无用户app) demo v0.0.1 - index.html - index.js - index.css 这个是单页面应用,然后如果打开了其他的路径,重定向到index.html user/demo/index.html user/demo/index.js user/demo/index.css 是实际的访问路径 但是在user/demo/a这个路由的时候,重定向到index.html这个页面。 真实的路径可能是数据库存储的路径位置https://a.b/demo/v0.0.1/index.html等等 同时demo可能也不是固定的demo的path,可能是其他的 根据user和demo这两个key去获取对应的资源。 先暂时不考虑过期和失效问题。
Author
Owner

第一步的逻辑-文件上传

用户的文件,用户的版本,文件应用类型。

codeflow/0.0.1/index.html
codeflow/0.0.1/assets/...js

转成用户保存的数据json

app列表

uid
id
key
appType: '前端单页面‘
version
domain
data: 
-- files
-- 

资源列表

id
uid
version
data: {}
## 第一步的逻辑-文件上传 用户的文件,用户的版本,文件应用类型。 ``` codeflow/0.0.1/index.html codeflow/0.0.1/assets/...js ``` 转成用户保存的数据json app列表 ``` uid id key appType: '前端单页面‘ version domain data: -- files -- ``` 资源列表 ``` id uid version data: {} ```
abearxiong added this to the kevisual2024 project 2024-10-11 22:14:56 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kevisual/var-proxy#1
No description provided.