mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
136 lines
6.3 KiB
JavaScript
136 lines
6.3 KiB
JavaScript
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/, '');
|
|
let version_string = Blockbench.version.replace('-beta.', ' Beta ')
|
|
if (compareVersions(v, Blockbench.version)) {
|
|
data.version_label = `${version_string} (${tl('about.version.update_available', [v])})`;
|
|
} else if (compareVersions(Blockbench.version, v)) {
|
|
data.version_label = `${version_string} (Pre-release)`;
|
|
} else {
|
|
data.version_label = `${version_string} (${tl('about.version.up_to_date')}😄)`;
|
|
}
|
|
},
|
|
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>
|
|
<a class="open-in-browser" href="http://discord.blockbench.net">
|
|
<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.
|
|
For all who enjoy stylized 3D art. For game developers, students, content creators, and for the Minecraft community.</p>
|
|
|
|
<h4>SPECIAL THANKS TO</h4>
|
|
<ul class="multi_column_list special_thanks_mentions">
|
|
<li>Mojang Studios</li>
|
|
<li>All contributors</li>
|
|
<li>The community moderators</li>
|
|
<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>
|
|
<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>
|
|
<li><a class="open-in-browser" href="https://github.com/cure53/DOMPurify">DOMPurify</a></li>
|
|
<li><a class="open-in-browser" href="https://prismjs.com">Prism</a></li>
|
|
<li><a class="open-in-browser" href="https://github.com/akalverboer/canvas2apng">Canvas2APNG</a></li>
|
|
<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()
|
|
}
|
|
})
|
|
})
|