2022-02-20 00:32:49 +08:00
|
|
|
BARS.defineActions(() => {
|
|
|
|
new Action('about_window', {
|
|
|
|
name: tl('dialog.settings.about') + '...',
|
|
|
|
description: `Blockbench ${Blockbench.version}`,
|
|
|
|
icon: 'info',
|
|
|
|
category: 'blockbench',
|
|
|
|
click: function () {
|
|
|
|
const data = {
|
|
|
|
isApp,
|
|
|
|
version_label: Blockbench.version
|
|
|
|
};
|
|
|
|
jQuery.ajax({
|
|
|
|
url: 'https://api.github.com/repos/JannisX11/blockbench/releases/latest',
|
|
|
|
cache: false,
|
|
|
|
type: 'GET',
|
|
|
|
success(release) {
|
|
|
|
let v = release.tag_name.replace(/^v/, '');
|
2022-08-20 18:36:40 +08:00
|
|
|
let version_string = Blockbench.version.replace('-beta.', ' Beta ')
|
2022-02-20 00:32:49 +08:00
|
|
|
if (compareVersions(v, Blockbench.version)) {
|
2022-08-20 18:36:40 +08:00
|
|
|
data.version_label = `${version_string} (${tl('about.version.update_available', [v])})`;
|
2022-02-20 00:32:49 +08:00
|
|
|
} else if (compareVersions(Blockbench.version, v)) {
|
2022-08-20 18:36:40 +08:00
|
|
|
data.version_label = `${version_string} (Pre-release)`;
|
2022-02-20 00:32:49 +08:00
|
|
|
} else {
|
2022-08-20 18:36:40 +08:00
|
|
|
data.version_label = `${version_string} (${tl('about.version.up_to_date')}😄)`;
|
2022-02-20 00:32:49 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
error(err) {}
|
|
|
|
})
|
|
|
|
|
|
|
|
new Dialog({
|
|
|
|
id: 'about',
|
|
|
|
title: 'dialog.settings.about',
|
|
|
|
width: 640,
|
|
|
|
title_menu: new Menu([
|
|
|
|
'settings_window',
|
|
|
|
'keybindings_window',
|
|
|
|
'theme_window',
|
|
|
|
'about_window',
|
|
|
|
]),
|
|
|
|
buttons: [],
|
|
|
|
component: {
|
|
|
|
data() {return data},
|
|
|
|
template: `
|
|
|
|
<div>
|
|
|
|
<div class="blockbench_logo" id="about_page_title">
|
|
|
|
<img src="assets/logo_text_white.svg" alt="Blockbench" width="340px">
|
|
|
|
</div>
|
|
|
|
<p>Version <span>{{ version_label }}</span></p>
|
|
|
|
|
|
|
|
<div class="socials">
|
|
|
|
<a class="open-in-browser" href="https://blockbench.net">
|
|
|
|
<i class="icon icon-blockbench_inverted" style="transform: scale(1.3);"></i>
|
|
|
|
<label>Website</label>
|
|
|
|
</a>
|
|
|
|
<a class="open-in-browser" href="https://twitter.com/blockbench">
|
|
|
|
<i class="icon fab fa-twitter" style="color: #1ea6ff;"></i>
|
|
|
|
<label>Twitter</label>
|
|
|
|
</a>
|
2022-03-12 22:09:09 +08:00
|
|
|
<a class="open-in-browser" href="http://discord.blockbench.net">
|
2022-02-20 00:32:49 +08:00
|
|
|
<i class="icon fab fa-discord" style="color: #727fff;"></i>
|
|
|
|
<label>Discord</label>
|
|
|
|
</a>
|
|
|
|
<a class="open-in-browser" href="https://youtube.com/Blockbench3D">
|
|
|
|
<i class="icon fab fa-youtube" style="color: #ff4444;"></i>
|
|
|
|
<label>YouTube</label>
|
|
|
|
</a>
|
|
|
|
<a class="open-in-browser" href="https://github.com/JannisX11/blockbench">
|
|
|
|
<i class="icon fab fa-github" style="color: #dddddd;"></i>
|
|
|
|
<label>GitHub</label>
|
|
|
|
</a>
|
|
|
|
<a class="open-in-browser" href="https://blockbench.net/wiki">
|
|
|
|
<i class="icon material-icons">menu_book</i>
|
|
|
|
<label>Wiki</label>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>Created by Jannis Petersen</p>
|
|
|
|
<p style="color: var(--color-subtle_text);">A free and open-source low-poly model editor. To make 3D art easy and accessible for everyone.
|
2022-03-06 19:22:59 +08:00
|
|
|
For all who enjoy stylized 3D art. For game developers, students, content creators, and for the Minecraft community.</p>
|
2022-02-20 00:32:49 +08:00
|
|
|
|
|
|
|
<h4>SPECIAL THANKS TO</h4>
|
2022-03-06 19:22:59 +08:00
|
|
|
<ul class="multi_column_list special_thanks_mentions">
|
2022-02-20 00:32:49 +08:00
|
|
|
<li>Mojang Studios</li>
|
|
|
|
<li>All contributors</li>
|
2022-03-06 19:22:59 +08:00
|
|
|
<li>The community moderators</li>
|
2022-02-20 00:32:49 +08:00
|
|
|
<li>All donators</li>
|
|
|
|
<li>All translators</li>
|
|
|
|
<li>Wacky</li>
|
|
|
|
<li>Ewan Howell and Lukas</li>
|
|
|
|
<li>SirBenet</li>
|
|
|
|
<li>Sultan Taha and Kanno</li>
|
|
|
|
<li>The Blockbench Community</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h4>FRAMEWORKS, LIBRARIES, AND ICONS</h4>
|
|
|
|
|
|
|
|
<p style="margin-bottom: 16px" v-if="isApp">This program is powered by <a class="open-in-browser" href="https://electronjs.org">Electron</a></p>
|
|
|
|
|
|
|
|
<ul class="multi_column_list">
|
|
|
|
<li><a class="open-in-browser" href="https://material.io/icons/">Material Icons</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://fontawesome.com/icons/">Font Awesome</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://electronjs.org">Electron</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://vuejs.org">Vue</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/weibangtuo/vue-tree">Vue Tree</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/sagalbot/vue-sortable">Vue Sortable</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://threejs.org">ThreeJS</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/lo-th/fullik">Full IK</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://bgrins.github.io/spectrum">Spectrum</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/stijlbreuk/vue-color-picker-wheel">Vue Color Picker Wheel</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/jnordberg/gif.js">gif.js</a></li>
|
2023-04-09 07:17:46 +08:00
|
|
|
<li><a class="open-in-browser" href="https://github.com/mattdesl/gifenc">gifenc</a></li>
|
2022-02-20 00:32:49 +08:00
|
|
|
<li><a class="open-in-browser" href="https://stuk.github.io/jszip/">JSZip</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/rotemdan/lzutf8.js">LZ-UTF8</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://jquery.com">jQuery</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://jqueryui.com">jQuery UI</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/furf/jquery-ui-touch-punch">jQuery UI Touch Punch</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/eligrey/FileSaver.js">FileSaver.js</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://peerjs.com">PeerJS</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/markedjs/marked">Marked</a></li>
|
2023-01-25 02:05:25 +08:00
|
|
|
<li><a class="open-in-browser" href="https://github.com/cure53/DOMPurify">DOMPurify</a></li>
|
2022-02-20 00:32:49 +08:00
|
|
|
<li><a class="open-in-browser" href="https://prismjs.com">Prism</a></li>
|
2023-01-10 22:21:16 +08:00
|
|
|
<li><a class="open-in-browser" href="https://github.com/akalverboer/canvas2apng">Canvas2APNG</a></li>
|
2022-02-20 00:32:49 +08:00
|
|
|
<li><a class="open-in-browser" href="https://github.com/koca/vue-prism-editor">Vue Prism Editor</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/JannisX11/molangjs">MolangJS</a></li>
|
|
|
|
<li><a class="open-in-browser" href="https://github.com/JannisX11/wintersky">Wintersky</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p style="margin-top: 20px">Published under the <a class="open-in-browser" href="https://github.com/JannisX11/blockbench/blob/master/LICENSE.MD">GPL 3.0 license</a></p>
|
|
|
|
<p><a class="open-in-browser" href="https://www.blockbench.net/privacy-policy">Privacy Policy</a></p>
|
|
|
|
|
|
|
|
</div>`
|
|
|
|
}
|
|
|
|
}).show()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|