Skip to content

Commit

Permalink
Web page improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nfdz committed Oct 22, 2021
1 parent a537881 commit f6ea33f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 28 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,11 @@ The application tries to simulate a classic terminal with a Bash shell on a Linu
}
]
}
```
```

## Dependencies

- <a href="https://github.com/rrousselGit/river_pod" target="_blank">Riverpod</a>: A simple way to access state from anywhere in your application while robust and testable.
- <a href="https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences" target="_blank">Shared preferences</a>: Flutter plugin for reading and writing simple key-value pairs.
- <a href="https://github.com/TechnoUrmish/Sizer" target="_blank">Sizer</a>: A Flutter plugin for easily make apps responsive.
- <a href="https://github.com/dart-lang/mockito" target="_blank">Mockito</a>: A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.
46 changes: 23 additions & 23 deletions src/fake_terminal/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>

<head>
<!--
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
Expand All @@ -12,37 +12,37 @@
Fore more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-->
<base href="/">
<base href="/">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="Interactive terminal with fake commands and data made with Flutter.">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="Interactive terminal with fake commands and data made with Flutter.">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="fake_terminal_app">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="fake_terminal_app">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png" />
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png" />

<title>fake_terminal_app</title>
<link rel="manifest" href="manifest.json">
<title>FakeTerminal</title>
<link rel="manifest" href="manifest.json">
</head>

<body>
<!-- This script installs service_worker.js to provide PWA functionality to
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('flutter-first-frame', function () {
navigator.serviceWorker.register('flutter_service_worker.js');
});
}
</script>
<script src="main.dart.js" type="application/javascript"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('flutter-first-frame', function() {
navigator.serviceWorker.register('flutter_service_worker.js');
});
}
</script>
<script src="main.dart.js" type="application/javascript"></script>
</body>

</html>
7 changes: 3 additions & 4 deletions src/fake_terminal/web/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "Fake Terminal",
"short_name": "Fake Terminal",
"name": "FakeTerminal",
"short_name": "FakeTerminal",
"start_url": ".",
"display": "standalone",
"background_color": "#242424",
"theme_color": "#1e90ff",
"description": "Interactive terminal with fake commands and data made with Flutter.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
{
"icons": [{
"src": "icons/Icon-192.png",
"sizes": "192x192",
"type": "image/png"
Expand Down

0 comments on commit f6ea33f

Please sign in to comment.