Compare commits
No commits in common. "46bc814fdc4c637fe442945f4a4850f09a8f76f8" and "63ee4b324d3a27a4841d86a8491d9816501a5c7a" have entirely different histories.
46bc814fdc
...
63ee4b324d
@ -11,7 +11,7 @@ from bricks_for_python.init import load_pybricks
|
|||||||
from ahserver.webapp import webapp
|
from ahserver.webapp import webapp
|
||||||
from ahserver.serverenv import ServerEnv
|
from ahserver.serverenv import ServerEnv
|
||||||
from ahserver.configuredServer import add_cleanupctx
|
from ahserver.configuredServer import add_cleanupctx
|
||||||
from rbac.init import load_rbac, start_cache_sync
|
from rbac.init import load_rbac
|
||||||
from pricing.init import load_pricing
|
from pricing.init import load_pricing
|
||||||
from appbase.init import load_appbase
|
from appbase.init import load_appbase
|
||||||
from llmage.init import load_llmage
|
from llmage.init import load_llmage
|
||||||
@ -42,7 +42,6 @@ def init():
|
|||||||
load_pybricks()
|
load_pybricks()
|
||||||
load_appbase()
|
load_appbase()
|
||||||
load_rbac()
|
load_rbac()
|
||||||
asyncio.create_task(start_cache_sync())
|
|
||||||
load_accounting()
|
load_accounting()
|
||||||
load_unipay()
|
load_unipay()
|
||||||
load_platformbiz()
|
load_platformbiz()
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
"kwargs":{
|
"kwargs":{
|
||||||
"user":"test",
|
"user":"test",
|
||||||
"db":"sage",
|
"db":"sage",
|
||||||
"password":"SS+C1MDMJrslBwGzYIv3nQ==",
|
"password": "xGatnL1idCnFRCe4FaIWRQ==",
|
||||||
"charset": "utf8mb4",
|
"charset": "utf8mb4",
|
||||||
"host":"db"
|
"host":"db"
|
||||||
}
|
}
|
||||||
|
|||||||
32
load_path.py
32
load_path.py
@ -74,16 +74,6 @@ paths="""/ any
|
|||||||
/llmage/llm/add_llm.dspy logined
|
/llmage/llm/add_llm.dspy logined
|
||||||
/llmage/show_llms_by_providers.ui logined
|
/llmage/show_llms_by_providers.ui logined
|
||||||
/llmage/list_paging_catelog_llms.dspy logined
|
/llmage/list_paging_catelog_llms.dspy logined
|
||||||
/llmage/v1/chat/completions logined
|
|
||||||
/llmage/v1/chat/completions/index.dspy logined
|
|
||||||
/llmage/v1/models logined
|
|
||||||
/llmage/v1/models/index.dspy logined
|
|
||||||
/llmage/v1/tasks logined
|
|
||||||
/llmage/v1/tasks/index.dspy logined
|
|
||||||
/llmage/v1/video/generations logined
|
|
||||||
/llmage/v1/video/generations/index.dspy logined
|
|
||||||
/llmage/v1/image/generations logined
|
|
||||||
/llmage/v1/image/generations/index.dspy logined
|
|
||||||
/public any
|
/public any
|
||||||
/public/mainpage any
|
/public/mainpage any
|
||||||
/public/mainpage/wish.webp any
|
/public/mainpage/wish.webp any
|
||||||
@ -498,7 +488,6 @@ paths="""/ any
|
|||||||
/dashboard_for_sage/accounting_errors.ui logined
|
/dashboard_for_sage/accounting_errors.ui logined
|
||||||
/dashboard_for_sage/top_models_chart.ui logined
|
/dashboard_for_sage/top_models_chart.ui logined
|
||||||
/accounting logined
|
/accounting logined
|
||||||
/accounting/index.ui logined
|
|
||||||
/accounting/mybalance.dspy logined
|
/accounting/mybalance.dspy logined
|
||||||
/accounting/open_reseller_provider_accounts.dspy logined
|
/accounting/open_reseller_provider_accounts.dspy logined
|
||||||
/accounting/open_owner_accounts.dspy logined
|
/accounting/open_owner_accounts.dspy logined
|
||||||
@ -642,7 +631,6 @@ paths="""/ any
|
|||||||
/msp/mspcatelog/delete_mspcatelog.dspy logined
|
/msp/mspcatelog/delete_mspcatelog.dspy logined
|
||||||
/msp/mspcatelog/new_mspcatelog.dspy logined
|
/msp/mspcatelog/new_mspcatelog.dspy logined
|
||||||
/pricing logined
|
/pricing logined
|
||||||
/pricing/index.ui logined
|
|
||||||
/pricing/pricing_program logined
|
/pricing/pricing_program logined
|
||||||
/pricing/pricing_program/add_pricing_program.dspy logined
|
/pricing/pricing_program/add_pricing_program.dspy logined
|
||||||
/pricing/pricing_program/index.ui logined
|
/pricing/pricing_program/index.ui logined
|
||||||
@ -687,7 +675,6 @@ paths="""/ any
|
|||||||
/dagflow/new_instance.ui logined
|
/dagflow/new_instance.ui logined
|
||||||
/API.md any
|
/API.md any
|
||||||
/rbac logined
|
/rbac logined
|
||||||
/rbac/index.ui logined
|
|
||||||
/rbac/phone_login.dspy any
|
/rbac/phone_login.dspy any
|
||||||
/rbac/refresh_userperm.dspy any
|
/rbac/refresh_userperm.dspy any
|
||||||
/rbac/get_reseller.dspy owner.*
|
/rbac/get_reseller.dspy owner.*
|
||||||
@ -950,7 +937,6 @@ paths="""/ any
|
|||||||
/filemgr/folder/index.ui logined
|
/filemgr/folder/index.ui logined
|
||||||
/filemgr/folder/new_folder.dspy logined
|
/filemgr/folder/new_folder.dspy logined
|
||||||
/platformbiz logined
|
/platformbiz logined
|
||||||
/platformbiz/index.ui logined
|
|
||||||
/platformbiz/agreement logined
|
/platformbiz/agreement logined
|
||||||
/platformbiz/agreement/update_agreement.dspy logined
|
/platformbiz/agreement/update_agreement.dspy logined
|
||||||
/platformbiz/agreement/add_agreement.dspy logined
|
/platformbiz/agreement/add_agreement.dspy logined
|
||||||
@ -1125,24 +1111,6 @@ paths="""/ any
|
|||||||
/product_management/product_category_tree logined
|
/product_management/product_category_tree logined
|
||||||
/product_management/product_list logined
|
/product_management/product_list logined
|
||||||
/product_management/product_type_config_list logined
|
/product_management/product_type_config_list logined
|
||||||
/supplychain logined
|
|
||||||
/supplychain/index.ui logined
|
|
||||||
/shell_theme.css any
|
|
||||||
/shell_theme.js any
|
|
||||||
/global_menu.ui logined
|
|
||||||
/shell.ui logined
|
|
||||||
/index.ui any
|
|
||||||
/dashboard_for_sage/shell.ui logined
|
|
||||||
/dashboard_for_sage/global_menu.ui any
|
|
||||||
/dashboard_for_sage/shell_theme.css any
|
|
||||||
/dashboard_for_sage/shell_theme.js any
|
|
||||||
/dashboard_for_sage/stat_active_users.ui logined
|
|
||||||
/dashboard_for_sage/stat_new_users_month.ui logined
|
|
||||||
/dashboard_for_sage/stat_total_orgs.ui logined
|
|
||||||
/dashboard_for_sage/table_top_providers_amount.ui logined
|
|
||||||
/dashboard_for_sage/table_top_providers_count.ui logined
|
|
||||||
/dashboard_for_sage/table_top_users_count.ui logined
|
|
||||||
/dashboard_for_sage/chart_top_models.ui logined
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
142
wwwroot/index.ui
142
wwwroot/index.ui
@ -1,141 +1,27 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "VBox",
|
"widgettype":"VBox",
|
||||||
"options": {
|
"options":{
|
||||||
"width": "100%",
|
"width":"100%",
|
||||||
"height": "100%",
|
"height":"100%"
|
||||||
"bgcolor": "#0B1120"
|
|
||||||
},
|
},
|
||||||
"subwidgets": [
|
"subwidgets":[
|
||||||
{
|
{
|
||||||
"widgettype": "HBox",
|
"widgettype":"urlwidget",
|
||||||
"options": {
|
"options":{
|
||||||
"width": "100%",
|
"url":"{{entire_url('top.ui')}}"
|
||||||
"height": "56px",
|
|
||||||
"bgcolor": "#111827",
|
|
||||||
"borderBottom": "1px solid #334155",
|
|
||||||
"padding": "0 16px",
|
|
||||||
"alignItems": "center"
|
|
||||||
},
|
|
||||||
"subwidgets": [
|
|
||||||
{
|
|
||||||
"widgettype": "Button",
|
|
||||||
"id": "sidebar_toggle_btn",
|
|
||||||
"options": {
|
|
||||||
"label": "",
|
|
||||||
"bgcolor": "transparent",
|
|
||||||
"color": "#94A3B8",
|
|
||||||
"border": "1px solid #334155",
|
|
||||||
"borderRadius": "8px",
|
|
||||||
"width": "36px",
|
|
||||||
"height": "36px",
|
|
||||||
"padding": "0"
|
|
||||||
},
|
|
||||||
"binds": [
|
|
||||||
{
|
|
||||||
"wid": "self",
|
|
||||||
"event": "click",
|
|
||||||
"actiontype": "script",
|
|
||||||
"target": "self",
|
|
||||||
"script": "sageToggleSidebar()"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype": "Image",
|
|
||||||
"options": {
|
|
||||||
"url": "{{entire_url('/imgs/msp.png')}}",
|
|
||||||
"height": "32px",
|
|
||||||
"marginLeft": "12px"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Title4",
|
"widgettype":"urlwidget",
|
||||||
"options": {
|
"options":{
|
||||||
"text": "Sage",
|
"url":"{{entire_url('center.ui')}}"
|
||||||
"color": "#F1F5F9",
|
|
||||||
"fontWeight": "bold",
|
|
||||||
"marginLeft": "8px"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Filler"
|
"widgettype":"urlwidget",
|
||||||
},
|
"options":{
|
||||||
{
|
"url":"{{entire_url('bottom.ui')}}"
|
||||||
"widgettype": "Button",
|
|
||||||
"id": "theme_toggle_btn",
|
|
||||||
"options": {
|
|
||||||
"label": "",
|
|
||||||
"bgcolor": "transparent",
|
|
||||||
"color": "#94A3B8",
|
|
||||||
"border": "1px solid #334155",
|
|
||||||
"borderRadius": "50%",
|
|
||||||
"width": "36px",
|
|
||||||
"height": "36px",
|
|
||||||
"padding": "0"
|
|
||||||
},
|
|
||||||
"binds": [
|
|
||||||
{
|
|
||||||
"wid": "self",
|
|
||||||
"event": "click",
|
|
||||||
"actiontype": "script",
|
|
||||||
"target": "self",
|
|
||||||
"script": "sageToggleTheme()"
|
|
||||||
}
|
}
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype": "urlwidget",
|
|
||||||
"options": {
|
|
||||||
"url": "{{entire_url('/rbac/user/user_panel.ui')}}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype": "HBox",
|
|
||||||
"options": {
|
|
||||||
"width": "100%",
|
|
||||||
"height": "calc(100% - 56px)"
|
|
||||||
},
|
|
||||||
"subwidgets": [
|
|
||||||
{
|
|
||||||
"widgettype": "VBox",
|
|
||||||
"id": "sage_sidebar",
|
|
||||||
"options": {
|
|
||||||
"width": "240px",
|
|
||||||
"height": "100%",
|
|
||||||
"bgcolor": "#111827",
|
|
||||||
"borderRight": "1px solid #334155"
|
|
||||||
},
|
|
||||||
"subwidgets": [
|
|
||||||
{
|
|
||||||
"widgettype": "urlwidget",
|
|
||||||
"options": {
|
|
||||||
"url": "{{entire_url('global_menu.ui')}}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype": "VBox",
|
|
||||||
"id": "sage_main_content",
|
|
||||||
"options": {
|
|
||||||
"css": "filler",
|
|
||||||
"height": "100%",
|
|
||||||
"padding": "24px"
|
|
||||||
},
|
|
||||||
"subwidgets": [
|
|
||||||
{
|
|
||||||
"widgettype": "Text",
|
|
||||||
"options": {
|
|
||||||
"text": "加载中...",
|
|
||||||
"fontSize": "16px",
|
|
||||||
"color": "#94A3B8"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,8 +2,7 @@
|
|||||||
"widgettype": "HBox",
|
"widgettype": "HBox",
|
||||||
"options":{
|
"options":{
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
"width": "100%",
|
"width": "100%"
|
||||||
"bgcolor": "#0B1120"
|
|
||||||
},
|
},
|
||||||
"subwidgets":[
|
"subwidgets":[
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user