Skip to content

Commit

Permalink
docs: Readme live demo
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Oct 25, 2022
1 parent 7ef92c1 commit 93bf9e6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

- 查看 [开发者文档](https://developer.eoapi.io) 开发插件

# 试试看
<iframe width="100%" height="600px" border="0" src="https://eoapi.io/"></iframe>

# 功能

📃 API 文档
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"postinstall": "electron-builder install-app-deps && npx patch-package",
"start": "npm-run-all -p start:workbench electron:serve",
"serve:web": "cd src/workbench/browser && npm run ng:serve",
"start:web": "cd src/workbench/browser && npm run ng:serve",
"start:testServer": "cd src/workbench/node/server && yarn dev",
"start:workbench": "cd src/workbench/browser && yarn start",
"build:workbench": "cd src/workbench/browser && yarn build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ export class ApiTestComponent implements OnInit, OnDestroy {
private messageService: MessageService,
private lang: LanguageService
) {
//Select demo api when first open Eoapi
if (!window.localStorage.getItem('local_TabCache')) {
const utm = new URLSearchParams(window.location.search);
this.router.navigate(['/home/api/http/test'], {
queryParams: { pageID: Date.now(), uuid: 1, ...Object.fromEntries(utm) },
});
setTimeout(() => {
const testBtn = document.getElementById('btn-test');
testBtn && testBtn.click();
}, 600);
}
// TODO Select demo api when first open Eoapi
// if (!window.localStorage.getItem('local_TabCache')) {
// const utm = new URLSearchParams(window.location.search);
// this.router.navigate(['/home/api/http/test'], {
// queryParams: { pageID: Date.now(), uuid: 1, ...Object.fromEntries(utm) },
// });
// setTimeout(() => {
// const testBtn = document.getElementById('btn-test');
// testBtn && testBtn.click();
// }, 600);
// }

this.initBasicForm();
this.testServer.init((message) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class ApiTabStorageService {
* @param data
*/
setPersistenceStorage(selectedIndex, opts) {
return;
//! remote datasource may change
// if (this.dataSource.dataSourceType === 'http') {return;}
let tabsByID = Object.fromEntries(this.tabsByID);
Expand Down
2 changes: 2 additions & 0 deletions wiki/README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ English | [简体中文](README.md)
- Read our [User Manual](https://docs.eoapi.io) for more features
- Read our [developer documentation](https://developer.eoapi.io) to develop extensions

# Try it
<iframe width="100%" height="600px" border="0" src="https://eoapi.io/en/"></iframe>
# Featue

📃 API Documentation
Expand Down

0 comments on commit 93bf9e6

Please sign in to comment.