Skip to content

Commit

Permalink
Update readme, changelog and package.json for 1.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
daledavies committed Jun 6, 2022
1 parent 458bb22 commit c9bbc90
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 20 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.0] - 2022-06-06
### Added
- Search: Search for sites added to Jump and also open a query in configurable list of search engines.
- Unsplash integration: Use random background images from Unsplash collections instead of local images.

### Fixed
- Tighten spacing between sites list.

## [1.1.4] - 2022-05-10
### Added
- New alternative layout for sites list, works better for sites with longer names (resolves issue #26).
Expand Down
68 changes: 49 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@

Jump is yet another self-hosted startpage for your server designed to be simple, stylish, fast and secure.

![screenshot](screenshot.png)

<img src="screenshots/screenshot-altlayout.png" width="190" /> <img src="screenshots/screenshot-tagselection.png" width="190" /> <img src="screenshots/screenshot-tagpage.png" width="190" />
![screenshot](screenshots/screenshot-demo.gif)

### Features

- Fast, easy to deploy, secure
- Custom sites and icons
- Categorise sites with tags
- Fetch favicons for sites without custom icons
- Custom background images
- Unsplash integration (background images)
- Search sites added to Jump, plus custom list of search engines
- Fetch favicons for sites without custom icons
- Open Weather Map integration


Expand All @@ -37,6 +37,7 @@ services:
- 8123:8080
volumes:
- ./backgrounds:/backgrounds
- ./search:/search
- ./sites:/sites
environment:
SITENAME: 'Custom site name'
Expand All @@ -48,23 +49,26 @@ services:
You can use the following optional environment variables to configure/customise your Jump site...

- `SITENAME` - Custom site name.
- `SHOWCLOCK: 'true'` - Show/hide the clock.
- `SHOWCLOCK: 'false'` - Hide the clock.
- `AMPMCLOCK: 'true'` - Show 12 hour clock format if true.
- `SHOWGREETING: 'true'` - Show a friendly greeting message rather than "#home".
- `BGBLUR: 70` - Background image blur percentage.
- `BGBRIGHT: 85` - Background image brightness percentage.
- `ALTLAYOUT: 'true'` - Display list of sites using an alternative layout.
- `NOINDEX: 'true'` - Include a robots noindex meta tag in site header
- `CACHEBYPASS: 'true'` - Bypass all caches, useful for testing changes.
- `SHOWGREETING: 'false'` - Show the label "#home" instead of a friendly greeting message.
- `SHOWSEARCH : 'false'` - Hide the search button (disable search).
- `ALTLAYOUT: 'true'` - Display list of sites using an [alternative layout](/screenshots/screenshot-altlayout.png).
- `BGBLUR: 50` - Background image blur percentage.
- `BGBRIGHT: 90` - Background image brightness percentage.
- `UNSPLASHAPIKEY` - An API key for Unsplash, enables fetching random background images from Unsplash.
- `UNSPLASHCOLLECTIONS` - List of Unsplash collection ID's (separated by commas) to select random images from.
- `OWMAPIKEY` - An API key for Open Weather Map, LATLONG (below) must also be defined.
- `LATLONG` - A latitude and longitude for the default location (e.g. "51.509865,-0.118092").
- `METRICTEMP: 'true'` - Metric (C) or imperial (F) temperature units.
- `NOINDEX: 'true'` - Include a robots noindex meta tag in site header
- `CACHEBYPASS: 'true'` - Bypass all caches, useful for testing changes.

**NOTE:** The OWMAPIKEY and LATLONG config options must be defined together.
**NOTE:** The `OWMAPIKEY` and `LATLONG` config options must be defined together.

#### Volume Mapping

You can map the "backgrounds" and "sites" directories to local directories as shown in the Docker Compose example above. Your local directories will be populated with Jump's default files when the container is next started unless the local directories already contain files, in which case the local files will be used by Jump instead.
You can map the "backgrounds", "search" and "sites" directories to local directories as shown in the Docker Compose example above. Your local directories will be populated with Jump's default files when the container is next started unless the local directories already contain files, in which case the local files will be used by Jump instead.

#### Docker

Expand All @@ -74,6 +78,7 @@ The same can be achieved just using Docker CLI...
docker run -d -p 8123:8080 \
--volume <path/to/backgrounds>:/backgrounds \
--volume <path/to/sites>:/sites \
--volume <path/to/search>:/search \
--env SITENAME='Custom site name' \
--env OWMAPIKEY='<open weather api key>' \
--env LATLONG='<lat,long>' \
Expand All @@ -96,7 +101,7 @@ Make sure you have created a cache directory and given the web user permission t

### Open Weather Map

You can configure Jump to get local time and weather updates by adding an Open Weather Map API key to `config.php` or passing the `OWMAPIKEY ` environment variable to the docker container (as described above).
You can configure Jump to get local time and weather updates by adding an Open Weather Map API key to `config.php` or passing the `OWMAPIKEY ` environment variable to the Docker container (as described above).

You will also need to provide a default `LATLONG` string (e.g. "51.509865,-0.118092"), Jump will use this until you press the location button and allow permission to get your location from the web browser.

Expand Down Expand Up @@ -178,20 +183,45 @@ On a per-site basis use `"nofollow": true` to include `rel="nofollow"` on specif

On a per-site basis use `"newtab": true` to open specific site links in a new browser tab.

### Search

Edit the `/search/searchengines.json` file to customise the list of search engines available from the search dropdown...

```json
[
{
"name": "Google",
"url": "https://www.google.co.uk/search?q="
},
{
"name": "DuckDuckGo",
"url": "https://duckduckgo.com/?q="
},
{
"name": "Bing",
"url": "https://www.bing.com/search?q="
}
]
```



### Background Images

To use your own background images just copy them to the `/backgrounds/` directory, Jump will pick up on them automatically.
To use your own background images just copy them to the `/backgrounds/` directory, Jump will pick up on them automatically ans show a random image every time the page loads.

If instead you want to use Unsplash for random background images add an Unsplash API key to `config.php` or pass the `UNSPLASHAPIKEY ` environment variable to the Docker container. You can provide a comma separated list of collection ID's using the `unsplashcollections` option in `config.php` or by passing them to the Docker container via the `UNSPLASHCOLLECTIONS` environment variable.

## Development

Patches, improvements and feature requests are welcomed although I want to avoid anything that requires a database, admin interface or user accounts.
Patches, improvements and feature requests are welcomed although I want to avoid anything that requires an admin interface or user accounts.

For development you will need to install composer dependencies by running `composer install` from within the `jumpapp` directory.

Javascript is bundled using Webpack, so you will need to have installed Node.js. Then within the root project directory (the same level as webpack.config.js) you should run `npm install`.

Before starting development you can run `npm run dev`, this will watch for changes to files within the `/assets/js/src/`directory and bundle them on the fly. The javascript bundle (`index.bundle.js`) created in development mode will not be minified and will contain source maps for debugging.
Before starting development you can run `npm run dev`, this will watch for changes to files within the `/jumpapp/assets/js/src/`, `/jumpapp/assets/css/src/` and `/jumpapp/templates/src/` directories and bundle them on the fly. Javascript and CSS bundles created in development mode will not be minified and will contain source maps for debugging.

You can test a production build using `npm run build`, this will bundle and minify the javascript source files without source maps.
You can test a production build using `npm run build` which will bundle and minify the javascript and CSS source files without source maps, header and footer templates will be created containing the correct links to newly created javascript and CSS bundles.

Please do not commit javascript bundles, only commit the patched source files.
Please do not commit any generated files however, only commit the patched source files.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jump",
"version": "1.1.4",
"version": "1.2.0",
"description": "Jump is yet another self-hosted startpage for your server designed to be simple, stylish, fast and secure.",
"scripts": {
"dev": "webpack --mode=development --devtool=inline-source-map --watch",
Expand Down
Binary file added screenshots/screenshot-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c9bbc90

Please sign in to comment.