mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Move Code app to demos directory.
This commit is contained in:
@@ -18,7 +18,6 @@ blockly/
|
||||
|- storage.py
|
||||
|- closure-library/ (Optional)
|
||||
`- static/
|
||||
|- apps/
|
||||
|- blocks/
|
||||
|- core/
|
||||
|- demos/
|
||||
|
||||
@@ -10,44 +10,12 @@ handlers:
|
||||
- url: /blockly/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Code, Maze and Turtle moved from demos to apps on 29 Dec 2012.
|
||||
# Code, Maze and Turtle moved from demos on 29 Dec 2012.
|
||||
- url: /static/demos/(code|maze|turtle)/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Vietnamese apps moved from vn to vi on 9 Jun 2012.
|
||||
- url: /static/apps/.+/vn\.html
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Code moved to index.html on 7 Aug 2013.
|
||||
- url: /static/apps/code/code\.html
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Code became language-agnostic on 20 Jul 2013.
|
||||
- url: /static/apps/code/(de|en|hu|vi|zh_tw)\.html
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Puzzle moved to Blockly Games on 15 Oct 2014.
|
||||
- url: /static/apps/puzzle/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Maze moved to Blockly Games on 10 Nov 2014.
|
||||
- url: /static/apps/maze/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Turtle moved to Blockly Games on 10 Nov 2014.
|
||||
- url: /static/apps/turtle/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Graph moved from apps to demos on 10 Nov 2014.
|
||||
- url: /static/apps/graph/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Plane moved from apps to demos on 13 Nov 2014.
|
||||
- url: /static/apps/plane/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
# Block Factory moved from apps to demos on 16 Oct 2014.
|
||||
- url: /static/apps/blockfactory/.*
|
||||
# Apps was disbanded on 20 Nov 2014.
|
||||
- url: /static/apps/.*
|
||||
static_files: redirect.html
|
||||
upload: redirect.html
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ if (loc.match('/apps/code/code.html')) {
|
||||
// Code moved to index.html on 7 Aug 2013.
|
||||
loc = loc.replace('/code.html', '/index.html');
|
||||
} else if (loc.match('/apps/code/zh_tw.html')) {
|
||||
// Code became language-agnostic on 20 Jul 2013.
|
||||
// zh-tw was changed to zh-hans on 25 Nov 2013.
|
||||
loc = loc.replace('/zh_tw.html', '/index.html?lang=zh-hans');
|
||||
} else if (loc.match('/apps/code/index.html')) {
|
||||
@@ -57,16 +56,8 @@ if (loc.match('/apps/puzzle/')) {
|
||||
} else if (loc.match('/apps/turtle/')) {
|
||||
// Turtle moved to Blockly Games on 10 Nov 2014.
|
||||
loc = 'https://blockly-games.appspot.com/turtle';
|
||||
}
|
||||
|
||||
if (loc.match('/apps/graph/')) {
|
||||
// Graph moved from apps to demos on 10 Nov 2014.
|
||||
loc = loc.replace('/apps/', '/demos/');
|
||||
} else if (loc.match('/apps/plane/')) {
|
||||
// Graph moved from apps to demos on 10 Nov 2014.
|
||||
loc = loc.replace('/apps/', '/demos/');
|
||||
} else if (loc.match('/apps/blockfactory/')) {
|
||||
// Block Factory moved from apps to demos on 16 Oct 2014.
|
||||
} else if (loc.match('/apps/')) {
|
||||
// Remaining apps moved to demos on 20 Nov 2014.
|
||||
loc = loc.replace('/apps/', '/demos/');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user