Skip to content

Commit 61bdbf2

Browse files
committed
Update Pages project to use Vite 4 and npm instead of yarn
1 parent 63e6bb9 commit 61bdbf2

File tree

8 files changed

+1491
-935
lines changed

8 files changed

+1491
-935
lines changed

src/UnityWebBrowser.Pages/README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
This node project contains the files for building the HTML pages that are included in the engines.
44

5-
It is built with [Yarn](https://yarnpkg.com/) and [Vite](https://vitejs.dev/).
6-
75
## Prerequisites
86

97
```
10-
NodeJS
11-
Yarn
8+
Node
9+
npm
1210
```
1311

14-
1. Run `yarn` or `yarn install` in the root of the pages project
12+
1. Run `npm install` in the root of the pages project
1513

16-
2. Run `yarn run start` to preview the site in your local browser.
14+
2. Run `npm run start` to preview the site in your local browser.
1715

18-
3. Run `yarn run build` to build the pages. They will be placed in the `dist/` folder. The UWB engine project will automatically included them as an embedded resources.
16+
3. Run `npm run build` to build the pages. They will be placed in the `dist/` folder. The UWB CEF engine project will automatically included them as an embedded resources.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<!doctype html><html lang=""><head><meta charset="utf-8"><title>UWB - About</title><script type="module">//assets/main.5263fe85.js
2-
const d=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const n of e)if(n.type==="childList")for(const o of n.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function c(e){const n={};return e.integrity&&(n.integrity=e.integrity),e.referrerpolicy&&(n.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?n.credentials="include":e.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(e){if(e.ep)return;e.ep=!0;const n=c(e);fetch(e.href,n)}};d();const r=window.uwbEngineVersion,f=window.webEngineName,a=window.webEngineVersion;var s=document.getElementById("uwbEngineVersionText"),l=document.getElementById("webEngineNameText"),u=document.getElementById("webEngineVersionText");r!==void 0?(s!=null&&(s.textContent=r),l!=null&&(l.textContent=f),u!=null&&(u.textContent=a),console.log("[UWB About] Found version info!")):console.error("[UWB About] Failed to get version info! Probably not running in a UWB engine!");</script><style>.content{font-family:Avenir,Helvetica,Arial,sans-serif;margin:40px 25px 25px}.header{border-bottom:#000 2px solid}.bottom-spacer{margin-bottom:1.2em}.footer{position:absolute;bottom:0}.fuckyou-text{font-size:8px;color:gray}body{background-color:#fff}</style></head><body><div class="content"><h2 class="header bottom-spacer">Unity Web Browser About</h2><p>UWB by <a href="https://github.com/Voltstro-Studios">Voltstro-Studios</a>, under MIT license.</p><p class="bottom-spacer">UWB Engine Version: <span id="uwbEngineVersionText">Getting...</span><br>Web Engine Name: <span id="webEngineNameText">Getting...</span><br>Web Engine Version: <span id="webEngineVersionText">Getting...</span></p><p><a href="https://github.com/Voltstro-Studios/UnityWebBrowser">GitHub</a> | <a href="https://uwb.voltstro.dev">Site</a></p><p class="footer fuckyou-text">UwU Nyaa~. Rowan SUXS XDDDDD</p></div></body></html>
1+
<!doctype html><html lang=""><head><meta charset="utf-8"><title>UWB - About</title><script type="module">const i=window.uwbEngineVersion,d=window.webEngineName,f=window.webEngineVersion;var s=document.getElementById("uwbEngineVersionText"),c=document.getElementById("webEngineNameText"),l=document.getElementById("webEngineVersionText");i!==void 0?(s!=null&&(s.textContent=i),c!=null&&(c.textContent=d),l!=null&&(l.textContent=f),console.log("[UWB About] Found version info!")):console.error("[UWB About] Failed to get version info! Probably not running in a UWB engine!");</script><style>.content{font-family:Avenir,Helvetica,Arial,sans-serif;margin:40px 25px 25px}.header{border-bottom:#000 2px solid}.bottom-spacer{margin-bottom:1.2em}.footer{position:absolute;bottom:0}.fuckyou-text{font-size:8px;color:gray}body{background-color:#fff}</style></head><body><div class="content"><h2 class="header bottom-spacer">Unity Web Browser About</h2><p>UWB by <a href="https://github.com/Voltstro-Studios">Voltstro-Studios</a>, under MIT license.</p><p class="bottom-spacer">UWB Engine Version: <span id="uwbEngineVersionText">Getting...</span><br>Web Engine Name: <span id="webEngineNameText">Getting...</span><br>Web Engine Version: <span id="webEngineVersionText">Getting...</span></p><p><a href="https://github.com/Voltstro-Studios/UnityWebBrowser">GitHub</a> | <a href="https://uwb.voltstro.dev">Site</a></p><p class="footer fuckyou-text">UwU Nyaa~. Rowan SUXS XDDDDD</p></div></body></html>

src/UnityWebBrowser.Pages/dist/error.html

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/UnityWebBrowser.Pages/error.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)