Comments (9)
您好, 欢迎本地测试后提交pr,最近比较忙可能测试不过来.
from fastapi-amis-admin.
这个判断的具体目的是什么呢
from fastapi-amis-admin.
保证左侧的菜单栏iframe页面, 直接点击能够在当前页面打开, 并且右键能够以新标签页的形式打开.
from fastapi-amis-admin.
我目前没遇这个场景。如果设置src为https://example.com/
,那么按照当前的逻辑实际渲染出来iframe的src就成了//example.com/
,页面无法正常加载。
from fastapi-amis-admin.
@site.register_admin
class AmisEditorAdmin(admin.IframeAdmin):
group_schema = None
page_schema = amis.PageSchema(label='AmisEditorDemo', icon='fa fa-edit', sort=-100)
src = 'https://aisuda.github.io/amis-editor-demo/'
fastapi_user_auth_demo 示例程序中以上代码显示正常, 确保目标链接支持iframe
from fastapi-amis-admin.
我测试了下如果src带端口号的话那么这页就不会在侧边栏菜单出现
from fastapi-amis-admin.
我测试了下如果src带端口号的话那么这页就不会在侧边栏菜单出现
这个很大可能性是amis的限制, 他的路由路径不能包含某些特殊字符.
from fastapi-amis-admin.
我测试了下如果src带端口号的话那么这页就不会在侧边栏菜单出现
是否全部src都需要执行这个正则替换
self.page_schema.url = re.sub(r"^https?:", "", iframe.src)
from fastapi-amis-admin.
如果我把这个判断去掉的话tab就会正常出现
from fastapi-amis-admin.
Related Issues (20)
- cannot import name 'DictIntStrAny' from 'fastapi.encoders' HOT 1
- how customize Edit Form ? HOT 1
- 登录之后重定向重定向次数过多 HOT 1
- 用了挺久的了,集中反馈下体验 HOT 2
- ModuleNotFoundError: No module named 'fastapi_user_auth.site' HOT 1
- Raise not implemented error for CHAR(36) column type HOT 1
- 建议可视化配置应用
- Extend search futures HOT 1
- 关于权限页面选择的 bug
- Enhancement: Contribution guide
- auth成功后app为空 HOT 2
- 怎么定义外键关联的字段不默认显示id? HOT 1
- 模型类注册到admin后打开adminDocs文档就会报这个错误!
- 307 Temporary Redirect loop HOT 1
- Code Editor not follow Locale settings (and how add support Jinja syntax support?) HOT 1
- ➜ andy pip install fastapi_amis_admin[cli] zsh: no matches found: fastapi_amis_admin[cli] HOT 1
- 如何自定义某个search_fields字段的UI组件 HOT 3
- Setup id at runtime? HOT 6
- Passing primary_key is not supported when also passing a sa_column HOT 1
- Using the Simple CRUD Example, Article Creation is not Persisted HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastapi-amis-admin.