https://github.com/onsenui/recent-activities
Recent activities data of Onsen UI Team, used in the website of Onsen UI.
https://github.com/onsenui/recent-activities
Last synced: 5 months ago
JSON representation
Recent activities data of Onsen UI Team, used in the website of Onsen UI.
- Host: GitHub
- URL: https://github.com/onsenui/recent-activities
- Owner: OnsenUI
- Created: 2017-09-06T13:15:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T04:17:40.000Z (almost 4 years ago)
- Last Synced: 2024-04-09T15:11:33.203Z (about 2 years ago)
- Size: 4.41 MB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# recent-activities
Recent activities data of Onsen UI Team, used in the website of Onsen UI.
## For maintainers
### How it works
The contents of this repository are loaded by the website via `raw.github.com`. The website requests a specific file based on the following rule.
|`location.hostname`|File|
|-|-|
|`onsen.io`|`recent-activities-en.hjson` (in `master` branch)|
|`s.onsen.io`|`recent-activities-en.hjson` (in `master` branch)|
|`ja.onsen.io`|`recent-activities-ja.hjson` (in `master` branch)|
|`s.ja.onsen.io`|`recent-activities-ja.hjson` (in `master` branch)|
|`localhost`|`recent-activities-en.hjson` (in `dev` branch)|
|`127.0.0.1`|`recent-activities-en.hjson` (in `dev` branch)|
Changes on the files will immediately reflect to the website.
### Structure of the files
Each of `recent-activities-en.hjson` and `recent-activities-ja.hjson` must be a valid [Hjson](https://hjson.org/) file.
You can use `date`, `title` and `description` properties for each item.
- `date` property will be parsed with [`moment(String)`](https://momentjs.com/docs/#/parsing/string/). Please do not forget adding an offset string. Otherwise, `date` will be parsed based on user's timezone and cause an error of ± 24 hours.
- `title` and `description` properties will be rendrered with `v-html` of Vue, so you can use any HTML syntax for these two properties.
### Example
```
[
{
date: 2017-09-10T00:00:00+09:00
title: Onsen UI 9.9.9 Released
description:
'''
Lorem ipsum
'''
},
{
date: 2017-09-01T00:00:00+09:00
title:
'''
hoge-onsenui 1.7.0 Released
'''
description:
'''
Supported Hoge 2.0.
Release Note
npm install hoge-onsenui --save
'''
},
]
```