Skip to content

Commit 66ebd29

Browse files
authored
Merge pull request #89 from Armored-Dragon/More-Replacement
More Replacement
2 parents 242bd78 + 1b8223c commit 66ebd29

File tree

7 files changed

+1343
-0
lines changed

7 files changed

+1343
-0
lines changed

applications/metadata.js

+9
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,15 @@ var metadata = { "applications":
333333
"icon": "domainMapper/icon_inactive_white.png",
334334
"caption": "DOMAP"
335335
},
336+
{
337+
"isActive": true,
338+
"directory": "more",
339+
"name": "MoreNG",
340+
"description": "More app rewrite in QML. Please see documentation https://github.com/overte-org/community-apps/tree/master/applications/more for more information",
341+
"jsfile": "more/more.js",
342+
"icon": "more/img/icon_white.png",
343+
"caption": "MORE-NG"
344+
},
336345
{
337346
"isActive": true,
338347
"directory": "hmd3rdPerson",

applications/more/README.md

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# More
2+
1. What is More
3+
2. User manual
4+
- Installation
5+
- Adding Repositories
6+
- Usability tips
7+
3. Development
8+
- How to create your own repository
9+
10+
## What is More
11+
More is an application that allows users to quickly install additional applications hosted from online repositories.
12+
13+
## User Manual
14+
### Installation
15+
**Recommended method**:
16+
17+
To install this application, visit the pre-installed More application provided inside of Overte.
18+
19+
Inside of the pre installed More application, search for the app that is also called "More".
20+
Click the "Install" button and the More application will be installed.
21+
You will also need to add the url Add `https://raw.githubusercontent.com/overte-org/community-apps/master/applications/more/more.qml` to the QML whitelist manually.
22+
23+
**Alternative**:
24+
25+
You can install More manually by following these instructions:
26+
1. In Interface, go to Edit > Running Scripts.
27+
2. Load the script url: `https://raw.githubusercontent.com/overte-org/community-apps/master/applications/more/more.js`
28+
3. Add `https://raw.githubusercontent.com/overte-org/community-apps/master/applications/more/more.qml` to the QML whitelist.
29+
30+
### Adding Repositories
31+
To add a repository, navigate to the application menu by pressing the top right most button with the hamburger icon.
32+
From there, click the section labeled "Repository Manager". In the text field labeled "Add a manifest.json url", paste in a url that provides a manifest json object.
33+
As an example, if you wanted to provide a url to a manifest file hosted on GitHub, you would paste in something along the lines of `https://raw.githubusercontent.com/user/respository/manifest.json`.
34+
After the url is in the text field, press the green plus button to add the repository to the list. Do note that this app does attempt to verify repositories when they are added. If you find that your repository can not be added successfully, ensure the repository is of the correct format. Also make sure that the url you are providing is correct.
35+
If you are a repository host, ensure that your repository is set up correctly.
36+
37+
38+
### Usability Tips
39+
TODO
40+
41+
## Development
42+
### How to create your own repository
43+
#### Github
44+
To turn a GitHub repository into a Overte repository provider, you need to make your GitHub repository a "[GitHub Pages](https://pages.github.com/)" repository.
45+
The defaults provided by GitHub will be sufficient for this use case. Select the root of the repository as the GitHub Pages root.
46+
After you have ensured that your repository is set up correctly, you can add the `manifest.json` file to the root of your repository.
47+
48+
This is the format to use:
49+
```json
50+
{
51+
"title": "My GitHub Repository", // This is the name that will show up in the repository manager
52+
"base_url": "https://raw.githubusercontent.com/myuser/myrepository", // This is what the More app uses as a base to search for applications provided by the 'applications' key just below this entry.
53+
54+
// This is the list of all applications this repository will provide to the More app.
55+
"applications": [
56+
{
57+
"name": "My App", // The name of the application to display.
58+
"directory": "myapp", // The directory of the application relative to the 'base_url'. This will be interpreted as 'https://raw.githubusercontent.com/myuser/myrepository/myapp' internally.
59+
"script": "myapp.js", // The entry script of the application.
60+
"icon": "icon.png", // The icon of the application to show in the list.
61+
"description": "This is my first application! Download this please." // The description of the application to display in the "details" page.
62+
},
63+
/// ...and other applications
64+
]
65+
}
66+
```
67+
68+
#### HTTPS Servers
69+
To provide the applications from a standard HTTPS server, the procedure is largely the same as with GitHub. You simply need to provide a JSON response that is in the same format as the above "GitHub" format.

applications/more/img/icon_black.png

327 Bytes
Loading

applications/more/img/icon_white.png

336 Bytes
Loading

applications/more/menu.svg

+38
Loading

0 commit comments

Comments
 (0)