Skip to content

Dev lite #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 57 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
a5b6aa8
altered country_data to only grab whether a country is completed inst…
Jul 17, 2018
4aaf657
altered country_data to only grab whether a country is completed inst…
Jul 17, 2018
15954e2
temporary fix to not try to translate english words into english
Jul 17, 2018
708e65c
updated html and css to remove completed_by lists on country popups a…
Jul 18, 2018
373df04
changed completed_by data to just pull completed countries, not teams
Jul 18, 2018
84bb17f
Update to jQuery 3.0
Jul 18, 2018
ae4696a
jQuery 3.0 update
Jul 18, 2018
18da63f
Merge branch 'removing_completed_by_country_data'
Jul 18, 2018
d08c877
updated country data to remove completed by
Jul 18, 2018
707715c
Removed no-store from cache-control
v1ncenth Jul 18, 2018
3c10047
Allow text selection in challenge description
v1ncenth Jul 18, 2018
a9b6f6b
Fixed TypeError undefined when pushing enter to submit answers
v1ncenth Jul 18, 2018
858fb48
Fixed bug where country might not be enabled even after turning on le…
v1ncenth Jul 19, 2018
d267a45
Removed activity and team widget. Removed graph/colors/filters in sco…
v1ncenth Jul 23, 2018
68dd043
Fixed line
v1ncenth Jul 24, 2018
4241304
cleanup
v1ncenth Jul 26, 2018
dd9dffd
Changed count(*) to exists() and some clean up
v1ncenth Aug 2, 2018
18f921f
fixed typo
v1ncenth Aug 2, 2018
f5b572c
Remove dupes
v1ncenth Aug 2, 2018
161785c
Removed extra argument from function
v1ncenth Aug 2, 2018
7d8985e
Removed unused variable
v1ncenth Aug 2, 2018
43b45c3
Removed unused function
v1ncenth Aug 2, 2018
17588b9
Fixed unnecessary INSERT's to hints_log table
v1ncenth Aug 2, 2018
ec60ddb
Temp fix by adding dummy data to prevent SQL queries
v1ncenth Aug 2, 2018
512ba1c
Temp fix
v1ncenth Aug 2, 2018
8c3f926
temp fix for Score in leaderboard widget
v1ncenth Aug 6, 2018
285a4f7
Fixed SELECT * FROM teams loop
v1ncenth Aug 17, 2018
91b5a40
Fixed status filter
v1ncenth Aug 24, 2018
3c33fff
Removed Exception and changed default bonus points
v1ncenth Aug 29, 2018
c053308
Fixed time
v1ncenth Aug 31, 2018
35df6f5
Disable login when setting a schedule for competition, it will be ena…
v1ncenth Sep 1, 2018
e609074
Fixed 2 bugs. One that allows you to grab attachments even when level…
v1ncenth Sep 11, 2018
111d4ff
UI fixes
v1ncenth Nov 21, 2018
868e1e0
Memcached fix and tutorial update
v1ncenth Nov 21, 2018
a7a159e
Added hint confirmation and multiple choice category
v1ncenth Jan 7, 2019
024e37a
Took out the console.log's
v1ncenth Jan 7, 2019
33df48c
Clean up
v1ncenth Jan 7, 2019
0fd3a48
Added param
v1ncenth Jan 8, 2019
e0ef6df
Query fix
v1ncenth Jan 8, 2019
ee6f55c
FB OAuth update
v1ncenth Jan 10, 2019
8be5a41
Took out error checking
v1ncenth Jan 10, 2019
d81bb2f
Fixed export full game
v1ncenth Jan 10, 2019
eee0c63
Fixed Backup/Restore Database
v1ncenth Jan 11, 2019
ac303bc
Levels: Countries in admin update
v1ncenth Jan 17, 2019
d321227
Added confirm password for registration and optimized genFirstCapture…
v1ncenth Feb 5, 2019
62922f2
Improved confirm password/error messages
v1ncenth Feb 6, 2019
2a09d4a
Changed password type, Team Selection is now sorted, and bonus points…
v1ncenth Feb 12, 2019
c1052ce
Fixed password types test
v1ncenth Feb 12, 2019
570a0e3
XHP error fix
v1ncenth Mar 7, 2019
20e1fe1
Scrollbar positions will be remembered. Filters for categories with s…
v1ncenth Mar 27, 2019
c9d6134
Workaround for choose an emblem, but unable to drag to scroll
v1ncenth Mar 28, 2019
1921cee
Fix for Docker quick setup
v1ncenth Apr 5, 2019
225d796
Docker multi-container fix
v1ncenth Apr 5, 2019
099bbe7
Fixed slider for choose an emblem
v1ncenth Apr 11, 2019
1836e00
Added scoreboard refresh
v1ncenth Apr 19, 2019
08bae35
Added change pw feature and fixed base issue
v1ncenth Aug 16, 2019
877a8f1
Merge branch 'master' into dev-lite
xfaith Aug 10, 2023
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
Prev Previous commit
Next Next commit
UI fixes
  • Loading branch information
v1ncenth committed Nov 21, 2018
commit 111d4ffea517ec824be08975945170ba4793b944
1 change: 0 additions & 1 deletion src/controllers/ajax/GameAjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ protected function getActions(): array<string> {
if (!$check_answered) {
return Utils::ok_response('Double score for you! SIKE!', 'game');
}
MultiTeam::invalidateMCRecords();
return Utils::ok_response('Success', 'game');
} else {
await FailureLog::genLogFailedScore(
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/modals/ActionModalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class="fb-cta cta--yellowe">

$content =
<div class="action-main">
{tr('Change your team name.')}
{tr('Change your team name.')} (Max 20 characters)
<form class="fb-form-no-padding team-name-form">
<input name="set_team_name" type="hidden" value="" />
<div class="form-el el--text">
Expand Down
47 changes: 1 addition & 46 deletions src/controllers/modals/TutorialModalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,52 +48,7 @@ private function getStep(
</svg>{tr(' are owned by others.')}
</p>
</div>;
return tuple($step, tr('Captures'), 'zoom', $header, $content);
case 'zoom':
$header =
<div class="header-graphic">
<svg class="icon--country-group--europe">
<use href="#icon--country-group--europe"></use>
</svg>
<svg class="icon--tutorial--zoom">
<use href="#icon--tutorial--zoom"></use>
</svg>
</div>;
$content =
<div class="main-text">
<p>{tr('Tap Plus[+] to Zoom In. Tap Minus[-] to Zoom Out.')}</p>
<p>{tr('Click and Drag to move left, right, up and down.')}</p>
</div>;
return tuple($step, tr('Zoom'), 'command-lines', $header, $content);
case 'command-lines':
$header =
<div class="header-graphic">
<div class="fb-column-container tutorial-graphic--command-lines">
<span class="indicator">/atk</span>
<ul>
<li>United_Arab_Emirates</li>
<li>United_Kingdom</li>
<li class="highlighted">United_States</li>
<li>Uruguay</li>
<li>Uzbekistan</li>
</ul>
</div>
</div>;
$content =
<div class="main-text">
<p>
{tr(
'Tap Forward Slash [/] to activate computer commands. A list of commands can be found under "Rules".',
)}
</p>
</div>;
return tuple(
$step,
tr('Command_Line'),
'navigation',
$header,
$content,
);
return tuple($step, tr('Captures'), 'navigation', $header, $content);
case 'navigation':
$content =
<div class="main-text">
Expand Down
1 change: 1 addition & 0 deletions src/models/Control.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class Control extends Model {
HintLog::genResetHints(), // Clear hints log
FailureLog::genResetFailures(), // Clear failures log
self::genResetBases(), // Clear bases log
Control::genFlushMemcached(), // Flush Memcached
self::genClearScriptLog(),
Configuration::genUpdate('registration', '0'), // Disable registration
Configuration::genUpdate('login', '1'), // Enable login
Expand Down
2 changes: 1 addition & 1 deletion src/models/Team.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public static function regenerateHash(string $password_hash): bool {

$team_name = trim($team_name);

if ($team_name === '') {
if ($team_name === '' || strlen($team_name) > 20) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/static/css/scss/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

.col dt, .col dd {
width: auto;
display: inline-block;
display: block;
}

.country-capture-stats {
Expand Down
5 changes: 2 additions & 3 deletions src/static/css/scss/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ dt {
font-size: .9em;
}

.country-window dd {
dd {
font-size: 1.1em;

&.country-owner {
Expand All @@ -544,8 +544,7 @@ dt {
}

& + dt {
margin-top: 5%;
margin-left: 10%;
margin-top: 1em;
}
}

Expand Down
4 changes: 0 additions & 4 deletions src/static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ $(document).ready(function() {
var page_location = window.location.pathname + window.location.search;
if (window.innerWidth < 960 && page_location != '/index.php?page=mobile') {
window.location = '/index.php?page=mobile';
} else if (window.innerWidth < 960 && page_location == '/index.php?page=mobile') {
setTimeout(function() {
window.location = '/index.php';
}, 2000);
} else if (window.innerWidth >= 960 && page_location === '/index.php?page=mobile') {
window.location = '/index.php';
}
Expand Down
4 changes: 3 additions & 1 deletion src/static/js/fb-ctf.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ function setupInputListeners() {
var responseData = JSON.parse(data);
if (responseData.result === 'OK') {
console.log('OK');
$('.js-trigger-score').unbind('click');
$($container).on('keypress', function(e) {
if (e.keyCode == 13) {
e.preventDefault();
Expand Down Expand Up @@ -1753,7 +1754,7 @@ function setupInputListeners() {
}

var firstTutorial = 'tool-bars',
tutorialSteps = 8,
tutorialSteps = 6,
currStepIndex = 1;

var tutorialPath = 'p=tutorial&modal=';
Expand All @@ -1773,6 +1774,7 @@ function setupInputListeners() {
currStepIndex++;
Utils.loadComponent('#fb-modal', loadPath, buildTutorial);
} else {
currStepIndex = 1;
closeTutorial();
}
});
Expand Down