diff --git a/.packages b/.packages new file mode 100644 index 0000000..ecd058e --- /dev/null +++ b/.packages @@ -0,0 +1,33 @@ +# Generated by pub on 2019-05-08 09:52:44.109849. +analyzer:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/analyzer-0.23.0/lib/ +args:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/args-0.12.2+6/lib/ +browser:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/browser-0.10.0+2/lib/ +collection:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/collection-1.1.0/lib/ +cookie:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/cookie-0.0.4/lib/ +crypto:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/crypto-0.9.0/lib/ +csslib:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/csslib-0.11.0+4/lib/ +forcemvc:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/forcemvc-0.7.1/lib/ +github:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/github-2.1.8/lib/ +html5lib:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/html5lib-0.12.0/lib/ +http_server:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/http_server-0.9.5+1/lib/ +intl:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/intl-0.12.0+3/lib/ +jsonify:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/jsonify-0.0.1/lib/ +logging:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/logging-0.9.3/lib/ +markdown:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/markdown-0.7.1+2/lib/ +matcher:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/matcher-0.11.4+1/lib/ +mime:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/mime-0.9.3/lib/ +mirrorme:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/mirrorme-0.2.2/lib/ +mustache4dart:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/mustache4dart-1.0.9/lib/ +path:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/path-1.3.3/lib/ +petitparser:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/petitparser-1.3.7/lib/ +quiver:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/quiver-0.21.1/lib/ +route:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/route-0.4.6/lib/ +source_span:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/source_span-1.0.3/lib/ +stack_trace:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.2.1/lib/ +string_scanner:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/string_scanner-0.1.3/lib/ +utf:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/utf-0.9.0+2/lib/ +watcher:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/watcher-0.9.4/lib/ +wired:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/wired-0.4.3+1/lib/ +xml:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/xml-2.2.3/lib/ +yaml:file:///Users/tyler/.pub-cache/hosted/pub.dartlang.org/yaml-2.1.2/lib/ +github_issue_mover:lib/ diff --git a/Dockerfile b/Dockerfile index 75ebfde..0d5bda0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,6 @@ # > docker build -t githubissuemover github.com/nicolasgarnier/github-issue-mover # > docker run -p 80:8080 -d githubissuemover -FROM google/dart-runtime +FROM google/dart-runtime:1.24 +RUN pub build MAINTAINER Nicolas Garnier diff --git a/app.yaml b/app.yaml deleted file mode 100644 index ed3e892..0000000 --- a/app.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# This file is needed in the case you deploy this app to Google App Engine. -runtime: custom -env: flex -api_version: 1 -threadsafe: true - -handlers: - - url: /.* - script: dynamic - secure: always diff --git a/bin/server.dart b/bin/server.dart index a395726..04ba820 100644 --- a/bin/server.dart +++ b/bin/server.dart @@ -19,8 +19,6 @@ import 'package:logging/logging.dart'; import 'package:forcemvc/force_mvc.dart'; import 'package:yaml/yaml.dart'; import 'package:github/server.dart'; -import 'package:appengine/appengine.dart'; - part 'logic/cookies.dart'; part 'logic/oauth_credentials.dart'; @@ -34,7 +32,9 @@ void main() { // Create a force HTTP server. WebApplication app = new WebApplication(clientFiles: '../build/web/', - views: './views/'); + views: './views/', + host: '0.0.0.0', + port: 8080); // Handles 404 gracefully. app.notFound((ForceRequest req, Model model) { @@ -45,6 +45,7 @@ void main() { app.setupConsoleLog(Level.FINEST); // Start serving. - runAppEngine(app.requestHandler); + // runAppEngine(app.requestHandler); + app.start(); } diff --git a/pubspec.lock b/pubspec.lock index dd39806..f842185 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,10 +5,6 @@ packages: description: analyzer source: hosted version: "0.23.0" - appengine: - description: appengine - source: hosted - version: "0.2.6" args: description: args source: hosted @@ -33,46 +29,18 @@ packages: description: csslib source: hosted version: "0.11.0+4" - fixnum: - description: fixnum - source: hosted - version: "0.9.1+2" forcemvc: description: forcemvc source: hosted version: "0.7.1" - gcloud: - description: gcloud - source: hosted - version: "0.1.4+1" github: description: github source: hosted version: "2.1.8" - googleapis: - description: googleapis - source: hosted - version: "0.6.0" - googleapis_auth: - description: googleapis_auth - source: hosted - version: "0.2.3+1" - googleapis_beta: - description: googleapis_beta - source: hosted - version: "0.9.0" html5lib: description: html5lib source: hosted version: "0.12.0" - http: - description: http - source: hosted - version: "0.11.1+3" - http_parser: - description: http_parser - source: hosted - version: "0.0.2+5" http_server: description: http_server source: hosted @@ -97,10 +65,6 @@ packages: description: matcher source: hosted version: "0.11.4+1" - memcache: - description: memcache - source: hosted - version: "0.1.0" mime: description: mime source: hosted @@ -121,10 +85,6 @@ packages: description: petitparser source: hosted version: "1.3.7" - protobuf: - description: protobuf - source: hosted - version: "0.3.5+2" quiver: description: quiver source: hosted @@ -165,3 +125,5 @@ packages: description: yaml source: hosted version: "2.1.2" +sdks: + dart: ">=1.7.0-dev.4.0 <2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 6b599af..6e7b3b2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,7 +10,6 @@ dependencies: logging: '>=0.9.0 <0.10.0' markdown: '>=0.7.0 <0.8.0' yaml: '>=2.0.0 <3.0.0' - appengine: any transformers: - $dart2js: sourceMaps: true diff --git a/web/gim_main.dart b/web/gim_main.dart index 0fc1c04..8fe3ade 100644 --- a/web/gim_main.dart +++ b/web/gim_main.dart @@ -61,7 +61,7 @@ AnchorElement newIssueLink = querySelector("#newIssueLink"); AnchorElement oldIssueLink = querySelector("#oldIssueLink"); ButtonElement closeMoveWidgetButton = querySelector("#close"); SpanElement numCommentsMoved = querySelector("#numComments"); -List checkMarks = querySelectorAll("#moveResultContainer .check"); +ElementList checkMarks = querySelectorAll("#moveResultContainer .check"); SpanElement closeIssueCheckMark = querySelector("#closeIssueCheck"); SpanElement copyCommentsCheckMark = querySelector("#copyCommentsCheck"); SpanElement referenceCommentCheckMark = querySelector("#referenceCommentCheck");