1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-29 17:50:09 +02:00

add changelog

This commit is contained in:
Kushagra Gour
2024-05-06 12:14:56 +05:30
parent 1c78c303e2
commit 3d5ea0627b
3 changed files with 22 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
import { h } from 'preact'; import { h } from 'preact';
import { Button } from './common'; import { Button } from './common';
import { Icon } from './Icons';
function NotificationItem({ type, label, children }) { function NotificationItem({ type, label, children }) {
var strongTag; var strongTag;
@@ -83,15 +84,18 @@ function Notification({ version, isLatest, ...props }) {
rel="noopener noreferrer" rel="noopener noreferrer"
class="btn" class="btn"
> >
Please rate Web Maker <span class="star" /> Please rate Web Maker &nbsp;
<span class="star" />
</a> </a>
&nbsp; &nbsp;
<a <a
class="btn"
href="http://twitter.com/share?url=https://webmaker.app/&text=Web Maker - A blazing fast %26 offline frontend playground! via @webmakerApp&related=webmakerApp&hashtags=web,editor,chrome,extension" href="http://twitter.com/share?url=https://webmaker.app/&text=Web Maker - A blazing fast %26 offline frontend playground! via @webmakerApp&related=webmakerApp&hashtags=web,editor,chrome,extension"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="btn" class="btn"
> >
<Icon name="twitter" />
Share it Share it
</a> </a>
</p> </p>
@@ -100,11 +104,19 @@ function Notification({ version, isLatest, ...props }) {
</div> </div>
); );
} }
export function Notifications(props) { export function Changelog(props) {
return ( return (
<div> <div>
<h1>Whats new?</h1> <h1>Whats new?</h1>
<Notification version="6.0.0" {...props} isLatest={true}> <Notification version="6.1.0" {...props} isLatest={true}>
<li>
<strong>🕹 Kaboom game engine</strong>: Kaboom.js is now available in
quick-add library list. Also, a new template to quick-start in Kaboom
has been added.
</li>
</Notification>
<Notification version="6.0.0" {...props}>
<li> <li>
<strong>🎁 PRO plan 🎉</strong>: Today I introduce to you - Web <strong>🎁 PRO plan 🎉</strong>: Today I introduce to you - Web
Maker's PRO plan! A set of additional super-features which you can Maker's PRO plan! A set of additional super-features which you can

View File

@@ -63,17 +63,13 @@ export function HelpModal(props) {
</Trans> </Trans>
</p> </p>
<p style={{ display: 'flex', gap: '0.5rem', flexWrap: 'wrap' }}> <p style={{ display: 'flex', gap: '0.5rem', flexWrap: 'wrap' }}>
<Button <a
onClick={props.onSupportBtnClick} href="http://twitter.com/share?url=https://webmaker.app/&text=Web Maker - A blazing fast %26 offline web playground! via @webmakerApp&related=webmakerApp&hashtags=web,frontend,playground,offline"
data-event-action="supportDeveloperHelpBtnClick" rel="noopener noreferrer"
data-event-category="ui"
class="btn btn-icon" class="btn btn-icon"
> >
<svg> <Trans>Share Web Maker</Trans>
<use xlinkHref="#gift-icon" /> </a>{' '}
</svg>
<Trans>Support the developer</Trans>
</Button>{' '}
<a <a
href="https://chromewebstore.google.com/detail/web-maker/lkfkkhfhhdkiemehlpkgjeojomhpccnh/reviews" href="https://chromewebstore.google.com/detail/web-maker/lkfkkhfhhdkiemehlpkgjeojomhpccnh/reviews"
target="_blank" target="_blank"

View File

@@ -37,7 +37,7 @@ import {
import { itemService } from '../itemService'; import { itemService } from '../itemService';
import '../db'; import '../db';
import { Notifications } from './Notifications'; import { Changelog } from './Changelog';
import Settings from './Settings.jsx'; import Settings from './Settings.jsx';
import { modes, HtmlModes, CssModes, JsModes } from '../codeModes'; import { modes, HtmlModes, CssModes, JsModes } from '../codeModes';
import { trackEvent } from '../analytics'; import { trackEvent } from '../analytics';
@@ -1848,7 +1848,7 @@ export default class App extends Component {
this.setState({ isNotificationsModalOpen: false }) this.setState({ isNotificationsModalOpen: false })
} }
> >
<Notifications <Changelog
onSupportBtnClick={this.openSupportDeveloperModal.bind(this)} onSupportBtnClick={this.openSupportDeveloperModal.bind(this)}
/> />
</Modal> </Modal>