Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ Icon
.Trashes
.VolumeIcon.icns

# Yarn 2 files
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# Yarn 2 Files to exclude
.yarn-integrity
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
# See https://github.com/yarnpkg/berry/issues/454
# Almost all other yarn files benefit from just being tracked and thrown in the repo
# so that later installs still work even if left-pad goes away or something.

node_modules/

Expand Down
1 change: 1 addition & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ blocks:
- ./configure
secrets:
- name: Tchalvak COMPOSER_AUTH with github pat
- name: Tchalvak GITHUB Open Source
- name: Tchalvak Github Ratelimit Avoidance Token Readonly
dependencies: []
- name: JS Tests
Expand Down
2 changes: 1 addition & 1 deletion deploy/lib/control/HomepageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HomepageController extends AbstractController
public const PRIV = false;
public const ALIVE = false;
private $loggedIn = false;
public const NW_VERSION = 'v1.20.2 2023.12.28';
public const NW_VERSION = 'v1.21.0-2024.05.22';

/**
* Stores logged-in status of user in member variable for use later
Expand Down
3 changes: 2 additions & 1 deletion deploy/templates/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
<!-- Bootstrap 3.4.1 core JavaScript
================================================== -->
<!-- Google jquery CDN version, sync composer component for tests if changed -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-migrate-3.7.1.js"></script>
{if $smarty.const.LOCAL_JS}
<!-- Local js turned on for when CDN is unavailable -->
<script>window.jQuery || document.write('<script src="{cachebust file="/js/jquery.min.js"}"><\/script>')</script>
Expand Down
5 changes: 3 additions & 2 deletions deploy/www/js/nw.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ $(selector).keyup(function () {
'message_id',
'latestMessage',
'message_id',
)
)
|| this.updateDataStore(
data.member_counts,
'active',
Expand Down Expand Up @@ -444,7 +444,8 @@ $(() => {
if (g_isIndex || g_isRoot) {
// Catchphrases: Hide the second two sections.
const catchphrases = $('#nw-catchphrases span');
const rand = Math.floor(Math.random() * catchphrases.size());
const catchphrasesLength = catchphrases.length || 0;
const rand = Math.floor(Math.random() * catchphrasesLength);
// Choose random index.
catchphrases.hide().eq(rand).show();
// Hide all, show one at random.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ninjawars",
"version": "1.20.2",
"version": "1.21.0",
"description": "The Ninja Game at ninjawars.net",
"main": "deploy/www/js/nw.js",
"directories": {
Expand Down
Loading