mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Remove Puzzle app (now in Blockly Games).
This commit is contained in:
@@ -50,12 +50,8 @@ handlers:
|
||||
- url: /static/apps/plane/(1_|2_)?(en|hu|vi|vn)\.html
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Puzzle moved to index.html on 30 Jul 2013.
|
||||
- url: /static/apps/puzzle/puzzle\.html
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Puzzle became language-agnostic on 20 Jul 2013.
|
||||
- url: /static/apps/puzzle/(af|cs|de|el|en|gl|hak|he|hu|ia|it|ja|ko|ksh|la|lb|lv|mk|ms|nl|pl|pt-br|ru|sv|sw|tzm|vi|zh-hans)\.html
|
||||
# Puzzle moved to Blockly Games on 15 Oct 2014.
|
||||
- url: /static/apps/puzzle/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Turtle moved to index.html on 7 Aug 2013.
|
||||
|
||||
@@ -72,14 +72,9 @@ if (loc.match('/apps/plane/plane.html')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (loc.match('/apps/puzzle/puzzle.html')) {
|
||||
// Puzzle moved to index.html on 30 Jul 2013.
|
||||
loc = loc.replace('/puzzle.html', '/index.html');
|
||||
} else if (loc.match('/apps/puzzle/index.html')) {
|
||||
// NOP.
|
||||
} else if (loc.match(/\/apps\/puzzle\/[-a-z]+\.html/)) {
|
||||
// Puzzle became language-agnostic on 20 Jul 2013.
|
||||
loc = loc.replace(/\/([-a-z]+)\.html/, '/index.html?lang=$1');
|
||||
if (loc.match('/apps/puzzle/')) {
|
||||
// Puzzle moved to Blockly Games on 15 Oct 2014.
|
||||
loc = 'https://blockly-games.appspot.com/puzzle';
|
||||
}
|
||||
|
||||
if (loc.match('/apps/turtle/turtle.html')) {
|
||||
|
||||
Reference in New Issue
Block a user