Replace changelog with page
This commit is contained in:
parent
2717451071
commit
ce1cfa4345
6 changed files with 115 additions and 32 deletions
18
CHANGELOG.md
18
CHANGELOG.md
|
@ -1,18 +0,0 @@
|
|||
# Changelog
|
||||
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).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- This changelog
|
||||
- Wish properties
|
||||
- Button to mark wish as fulfilled
|
||||
|
||||
### Improved
|
||||
- Card design
|
||||
|
||||
### Fixed
|
||||
- Various small bugs
|
|
@ -30,4 +30,9 @@
|
|||
<lastmod>2022-06-08T10:45:19+00:00</lastmod>
|
||||
<priority>1.00</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://wishthis.online/changelog</loc>
|
||||
<lastmod>2022-06-08T10:45:19+00:00</lastmod>
|
||||
<priority>1.00</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
|
|
3
src/assets/js/changelog.js
Normal file
3
src/assets/js/changelog.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
$(function() {
|
||||
$('.menu .item').tab();
|
||||
});
|
|
@ -126,6 +126,7 @@ class Page
|
|||
'login',
|
||||
'maintenance',
|
||||
'register',
|
||||
'changelog',
|
||||
);
|
||||
if (
|
||||
!isset($_SESSION['user'])
|
||||
|
@ -682,6 +683,11 @@ class Page
|
|||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<i class="newspaper icon"></i>
|
||||
<div class="content"><a href="/?page=changelog"><?= __('Changelog') ?></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
101
src/pages/changelog.php
Normal file
101
src/pages/changelog.php
Normal file
|
@ -0,0 +1,101 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* power.php
|
||||
*
|
||||
* @author Jay Trees <github.jay@grandel.anonaddy.me>
|
||||
*/
|
||||
|
||||
namespace wishthis;
|
||||
|
||||
$page = new Page(__FILE__, __('Changelog'));
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
?>
|
||||
|
||||
<main>
|
||||
<div class="ui container">
|
||||
<h1 class="ui header"><?= $page->title ?></h1>
|
||||
|
||||
<div class="ui stackable grid">
|
||||
|
||||
<div class="four wide column">
|
||||
<div class="ui vertical pointing fluid menu profile">
|
||||
<a class="item" data-tab="unreleased"><?= __('Unreleased') ?></a>
|
||||
<a class="item" data-tab="0-6-0"><?= __('0.6.0') ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="twelve wide stretched column">
|
||||
<div class="ui tab" data-tab="unreleased">
|
||||
<div class="ui segments">
|
||||
|
||||
<div class="ui segment">
|
||||
<h2 class="ui header"><?= __('Unreleased') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="ui segment">
|
||||
<h3 class="ui header"><?= __('Added') ?></h3>
|
||||
<ul>
|
||||
<li>Blog</li>
|
||||
</ul>
|
||||
|
||||
<h3 class="ui header"><?= __('Improved') ?></h3>
|
||||
<ul>
|
||||
<li>Localisation (many new translations added)</li>
|
||||
</ul>
|
||||
|
||||
<h3 class="ui header"><?= __('Changed') ?></h3>
|
||||
<ul>
|
||||
<li>Changelog is now a page instead of a downloadable markdown file</li>
|
||||
</ul>
|
||||
|
||||
<h3 class="ui header"><?= __('Fixed') ?></h3>
|
||||
<ul>
|
||||
<li>Various minor things (typos, menu order, etc)</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui tab" data-tab="0-6-0">
|
||||
<div class="ui segments">
|
||||
|
||||
<div class="ui segment">
|
||||
<h2 class="ui header"><?= __('0.6.0') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="ui segment">
|
||||
<h3 class="ui header"><?= __('Added') ?></h3>
|
||||
<ul>
|
||||
<li>This changelog</li>
|
||||
<li>Wish properties</li>
|
||||
<li>Button to mark wish as fulfilled</li>
|
||||
</ul>
|
||||
|
||||
<h3 class="ui header"><?= __('Improved') ?></h3>
|
||||
<ul>
|
||||
<li>Card design</li>
|
||||
</ul>
|
||||
|
||||
<h3 class="ui header"><?= __('Fixed') ?></h3>
|
||||
<ul>
|
||||
<li>Various small bugs</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php
|
||||
$page->footer();
|
||||
$page->bodyEnd();
|
||||
?>
|
|
@ -111,20 +111,6 @@ $page->navigation();
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui segment">
|
||||
<h2 class="ui header"><?= __("What's new") ?></h2>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/** TRANSLATORS: %s: Changelog */
|
||||
__('Check out the %s for a list changes.'),
|
||||
'<a href="/CHANGELOG.md">' . __('Changelog') . '</a> (<i class="markdown icon"></i>)'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue