Comments (5)
Hi @Invincible83,
we have added a small support for extending setup
interface.
Quick summary:
- create a new plugin (your own)
- add a type
exports.type = 'setup';
- and then you should see your plugin in the setup UI
from openplatform.
Hello,
Nice. This is extactly what I mean. Is there something else I should do? I'm trying it and this is where I get, as far. (I used the profiles
plugin from openplatform-application for testing)
This is the openplatform directory structure
bundles/openplatform.bundle
plugins/profiles/index.js
plugins/profiles/public/index.html
plugins/profiles/...
index.js
exports.icon = 'ti ti-totaljs';
exports.name = '@(Profiles)';
exports.position = 2;
exports.permissions = [{ id: 'profiles', name: 'Profiles' }];
exports.visible = user => user.sa || user.permissions.includes('profiles');
exports.type = 'setup'; // extends the `setup` plugin
exports.routes = [
{ url: '/profiles/{id}/', html: 'detail' }
];
exports.install = function() {
ROUTE('+API /api/ -profiles *Profiles --> list');
};
It kind of works. I have profiles
link in setup menu. Yet, when I click on it, I get this errors in the console
mytesting.com/_profiles/pages/setup.html?language=en 404 (Not Found)
jC: invalid response for IMPORT("/_profiles/pages/setup.html") [{…}]
Sorry to bother you,
Thank you
from openplatform.
I tested it. I don't know about it, but you must move the file /public/index.html
to /public/pages/index.html
and it will work. Be careful with API endpoints, they must be in the form /setup/
.
from openplatform.
Can you please upload your testing version?
As far I see, there https://github.com/totaljs/openplatform/blob/master/plugins/setup/index.js#L55-L63 is no obj.routes
even in setup/index.html
it's counting on it. https://github.com/totaljs/openplatform/blob/master/plugins/setup/index.html#L80C1-L86
And there is static setup.html
. I believe this should be index.html
. https://github.com/totaljs/openplatform/blob/master/plugins/setup/index.html#L79
from openplatform.
Sure, so I had some time to spare and did some tests. I found that my suspicions were correct. It's the /setup.html
in the component. The second I changed it to /index.html
, it started working.
https://github.com/totaljs/openplatform/blob/master/plugins/setup/index.html#L79C95-L79C112
from openplatform.
Related Issues (19)
- Not lucky when installing... HOT 3
- Starter tutorial for custom application HOT 1
- X-Frame-Options sameorigin HOT 3
- Cannot login with default credentials HOT 2
- Seriously, great work, but some minor implementation issues... HOT 4
- How to make another view like Applications HOT 2
- Port all the databases to a better tech HOT 4
- License HOT 1
- Email is not working HOT 4
- [Security] Stored XSS in account name HOT 4
- [Security] Stored XSS in platform name HOT 5
- add event listener to ESC key to close windows HOT 4
- add event listener for ENTER key HOT 1
- Scroll disabled ? HOT 1
- Add users programmatically HOT 3
- 502 Bad Gateway HOT 2
- Loading gif issue ! HOT 4
- 404 image not found johndeal_domain_com.jpg HOT 4
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 openplatform.