Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
Remove PWA, undo font load, change title img
Browse files Browse the repository at this point in the history
  • Loading branch information
IOMAN1 committed Sep 7, 2024
1 parent 0c1d5b2 commit 433fbe3
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 66 deletions.
2 changes: 0 additions & 2 deletions client/css/app.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import url(font.css);

:root {
--side-pad: 12px;
}
Expand Down
15 changes: 0 additions & 15 deletions client/css/font.css

This file was deleted.

14 changes: 10 additions & 4 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,26 @@
<meta charset='UTF-8'>
<title>survev.io - 2d battle royale game</title>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=no">
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="survev.io">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="application-name" content="survev.io">
<meta name="description" content="Like games such as Player Unknown's Battlegrounds (PUBG), Fortnite or Apex Legends? Play this free 2d battle royale io game in your browser!">
<meta property="og:description" content="Like games such as Player Unknown's Battlegrounds (PUBG), Fortnite or Apex Legends? Play this free 2d battle royale io game in your browser!">
<meta name="keywords" content="survev, resurviv, survivio, surviv, 2d battle royale, io, battle royale browser game, 2d battlegrounds, battlegrounds, battleroyale, battle, royale, browser game, br, survival, game, web game, multiplayer">
<meta property="og:type" content="website">
<meta property="og:title" content="survev.io">
<meta property="og:url" content="https://survev.io/">
<meta property="og:site_name" content="survev.io">
<meta content="https://raw.githubusercontent.com/leia-uwu/resurviv/master/client/public/img/survev_title.png" property="og:image">
<meta content="https://survev.io/img/survev_title.png" property="og:image">
<link rel="canonical" href="https://survev.io" />
<link rel="apple-touch-icon" href="img/apple-touch-icon-180x180.png">
<link rel="apple-touch-icon-precomposed" href="img/icon_app.png">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="mask-icon" href="img/maskable-icon-512x512.png" color="#FFFFFF">
<meta name="theme-color" content="#80af49">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700" rel="stylesheet">

<link href="css/app.css" rel="stylesheet">
<link href="css/game.css" rel="stylesheet">
</head>
Expand Down
1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"devDependencies": {
"@types/jquery": "^3.5.30",
"vite": "^5.4.3",
"vite-plugin-pwa": "^0.20.5",
"vite-plugin-strip-block": "^1.0.1"
}
}
Binary file removed client/public/img/apple-touch-icon-180x180.png
Binary file not shown.
Binary file removed client/public/img/maskable-icon-512x512.png
Binary file not shown.
Binary file removed client/public/img/pwa-192x192.png
Binary file not shown.
Binary file removed client/public/img/pwa-512x512.png
Binary file not shown.
Binary file removed client/public/img/pwa-64x64.png
Binary file not shown.
32 changes: 15 additions & 17 deletions client/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{
"name": "Resurviv",
"short_name": "Resurviv",
"description": "",
"icons": [
{
"src": "img/icon_app.png",
"sizes": "192x192",
"type": "image/png",
"density": 3.0
}
],
"categories": ["games"],
"start_url": ".",
"theme_color": "#80af49",
"background_color": "#80af49",
"display": "fullscreen",
"orientation": "landscape"
"name": "survev.io",
"short_name": "survev.io",
"icons": [
{
"src": "img/icon_app.png",
"sizes": "192x192",
"type": "image/png",
"density": 3.0
}
],
"start_url": "index.html",
"theme_color": "#80af49",
"background_color": "#80af49",
"display": "fullscreen",
"orientation": "landscape"
}
27 changes: 0 additions & 27 deletions client/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
import stripBlockPlugin from "vite-plugin-strip-block";
import { Config } from "../server/src/config";

Expand Down Expand Up @@ -47,32 +46,6 @@ export default defineConfig(({ mode }) => {
},
},
plugins: [
VitePWA({
registerType: "autoUpdate",
includeAssets: ["favicon.ico", "img/apple-touch-icon-180x180.png"],
manifest: {
name: "Resurviv",
short_name: "Resurviv",
description: "Describe me daddy",
background_color: "#80af49",
theme_color: "#80af49",
icons: [
{
src: "img/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "img/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
},
],
},
devOptions: {
enabled: true,
},
}),
mode !== "development"
? stripBlockPlugin({
start: "STRIP_FROM_PROD_CLIENT:START",
Expand Down

0 comments on commit 433fbe3

Please sign in to comment.