Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

WIP: Remove dep on AppEngine #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 33 additions & 0 deletions .packages
Original file line number Diff line number Diff line change
@@ -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/
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nivco@google.com>
10 changes: 0 additions & 10 deletions app.yaml

This file was deleted.

9 changes: 5 additions & 4 deletions bin/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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) {
Expand All @@ -45,6 +45,7 @@ void main() {
app.setupConsoleLog(Level.FINEST);

// Start serving.
runAppEngine(app.requestHandler);
// runAppEngine(app.requestHandler);
app.start();
}

42 changes: 2 additions & 40 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -165,3 +125,5 @@ packages:
description: yaml
source: hosted
version: "2.1.2"
sdks:
dart: ">=1.7.0-dev.4.0 <2.0.0"
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion web/gim_main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ AnchorElement newIssueLink = querySelector("#newIssueLink");
AnchorElement oldIssueLink = querySelector("#oldIssueLink");
ButtonElement closeMoveWidgetButton = querySelector("#close");
SpanElement numCommentsMoved = querySelector("#numComments");
List<SpanElement> checkMarks = querySelectorAll("#moveResultContainer .check");
ElementList<SpanElement> checkMarks = querySelectorAll("#moveResultContainer .check");
SpanElement closeIssueCheckMark = querySelector("#closeIssueCheck");
SpanElement copyCommentsCheckMark = querySelector("#copyCommentsCheck");
SpanElement referenceCommentCheckMark = querySelector("#referenceCommentCheck");
Expand Down