dart-sdk/samples-dev/swarm
Alexander Thomas b5c63ce757 [infra] Migrate scripts to python3
* Migrate to python3; drop python support.
* Update Windows toolchain support.
* Remove some unused methods.
* Python 2.7 is still needed on Windows.
* Update gsutil to a version that supports python3.

Fixes: https://github.com/dart-lang/sdk/issues/28793

TEST=Manually tested common user journeys.

Change-Id: I663a22b237a548bb82dc2e601e399e3bc3649211
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192182
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2021-04-15 10:10:20 +00:00
..
appengine [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
data
swarm_ui_lib Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
App.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
back-21.png
BiIterator.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
buildapp.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
cacheimages.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
CannedData.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
ConfigHintDialog.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
CSS.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
Dart_Logo_21.png
DataSource.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
Decoder.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
externallink.svg
favicon.png
favicon128.png
gen_manifest.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
HelpDialog.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
info.svg
lefttriangle.svg
manifest.json
pigeons-jumpinjimmyjava-white90pct-q70.jpg
README
refresh-21.png
righttriangle.svg
settings-21.png
sliderarrow.svg
swarm-dev.pem
swarm.css
swarm.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
swarm.html
swarm.scss
SwarmApp.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
swarmlib.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
SwarmState.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
SwarmViews.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
UIState.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00
update.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
Views.dart Opt out some files from null safety. 2020-10-12 22:15:42 +00:00

Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.

A sample news reader application.

Running in the Editor with demo data (demo only, no feeds):

1. open the Dart Editor

2. from the menu, click File / Open Folder and load this directory

3. click the green run button

4. alternatively, to run as javascript:
  - compile (under the Tools / Generate JavaScript menu option)
  - load the same url shown in Dartium in step 3 in any other browser

Running in Dartium from the file system (demo only, no feeds):

1. run the Dartium Chrome binary from the command line with the following flag: --allow-file-access-from-files

2. navigate to the swarm.html file in this directory

Running from App Engine (TODO: these are stale instructions):

1. To run on App Engine, install the App Engine SDK for your platform, then
  $ easy_install --upgrade google-api-python-client per http://code.google.com/p/google-api-python-client/wiki/Installation
  $ cd samples/swarm/appengine
  $ enable-app-engine-project . per http://code.google.com/p/google-api-python-client/wiki/GoogleAppEngine
  Start the App Engine dev server and browse to /swarm-js.html