-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
131 path based routing on GitHub pages (#132)
* 解析js trace,未完成,需要先把URL更为无哈希(hash)的形式,例如 http://localhost:8888/you/flutter_web/pure_dart/execption,你需要切换到使用基于路径的路由(Path-based routing)。 * 解析js trace,未完成,需要先把URL更为无哈希(hash)的形式,例如 http://localhost:8888/you/flutter_web/pure_dart/execption,你需要切换到使用基于路径的路由(Path-based routing)。 * remove mirror.yaml
- Loading branch information
Showing
8 changed files
with
34 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:collection/collection.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:checks/checks.dart'; | ||
import 'package:path/path.dart' as path; | ||
void main() { | ||
group("Note path", () { | ||
test("study", () async { | ||
check(path.dirname("/")).equals("/"); | ||
check(path.dirname("/a/b")).equals("/a"); | ||
check(path.relative("/a/b",from: "/")).equals("a/b"); | ||
check(path.dirname("")).equals("."); | ||
check(path.basename("/")).equals("/"); | ||
check(path.basename("")).equals(""); | ||
|
||
}); | ||
}); | ||
} |