mirror of
https://github.com/zoriya/EAU.git
synced 2025-12-05 22:26:14 +00:00
Progressing
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
node_modules
|
||||
build
|
||||
build
|
||||
npm-debug.log
|
||||
|
||||
18
dist/html/fragments/home.html
vendored
18
dist/html/fragments/home.html
vendored
@@ -1,15 +1,15 @@
|
||||
|
||||
<div class="scene">
|
||||
<div class="carousel">
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/728880/header.jpg?t=1551908455" />
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/427520/header.jpg?t=1551898475" />
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/728880/header.jpg?t=1551908455" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/427520/header.jpg?t=1551898475" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
<img class="carousel__cell" ondragstart="return false;" src="https://steamcdn-a.akamaihd.net/steam/apps/504230/header.jpg?t=1547237854" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
4
dist/html/fragments/settings.html
vendored
4
dist/html/fragments/settings.html
vendored
@@ -25,7 +25,7 @@
|
||||
<h1 name ="Auto">Automatic game detection</h1>
|
||||
|
||||
<p>Sign in trought steam to register your steam game on this PC</p>
|
||||
<input type="image" src="https://steamcommunity-a.akamaihd.net/public/images/signinthroughsteam/sits_small.png" />
|
||||
<input type="image" src="https://steamcommunity-a.akamaihd.net/public/images/signinthroughsteam/sits_small.png">
|
||||
<a class="browser" href="http://eau.raccoon-sdg.fr/steamLog.php"></a>
|
||||
</input>
|
||||
<h1 name ="Man">Manually add game</h1>
|
||||
@@ -41,4 +41,4 @@
|
||||
shell.openExternal(event.target.href);
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
6
dist/html/index.html
vendored
6
dist/html/index.html
vendored
@@ -8,15 +8,15 @@
|
||||
|
||||
<script>if (typeof module === 'object') { window.module = module; module = undefined; }</script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
|
||||
//<script src="../../node_modules/jquery/dist/jquery.min.js"></script>
|
||||
<!-- <script src="../../node_modules/jquery/dist/jquery.min.js"></script> !-->
|
||||
<script>if (window.module) module = window.module;</script>
|
||||
|
||||
<script src="../js/electron-specific.js"></script> <!--Using this script because electrons scripts cant be compiled-->
|
||||
<script src="../js/index.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-dark bg-primary align-items-end"> <!--fixed-top-->
|
||||
<header height="56px">
|
||||
<nav class="navbar navbar-dark bg-primary align-items-end fixed-top">
|
||||
<a id="title" class="navbar-brand text-white">EAU</a>
|
||||
<div style="float: right;">
|
||||
<div class="searchbar">
|
||||
|
||||
4
dist/js/index.js
vendored
4
dist/js/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -7,12 +7,14 @@ var angle = 0;
|
||||
export function setup()
|
||||
{
|
||||
carousel = document.querySelector(".carousel");
|
||||
$.get("http://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v0001/?key=7C218E8D1347C3CD6CB8117E5ED533BC&steamid=76561198250223174&format=json",
|
||||
$.getJSON("http://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v0001/?key=7C218E8D1347C3CD6CB8117E5ED533BC&steamid=76561198268998707&format=json",
|
||||
JSON ,(data)=>{
|
||||
if(data.response.total_count ==0){
|
||||
console.log("no recent played games");
|
||||
}
|
||||
console.log(JSON.stringify(data));
|
||||
});
|
||||
|
||||
var list = document.getElementsByClassName("carousel__cell");
|
||||
|
||||
for (var i = 0; i < list.length; i++)
|
||||
@@ -29,10 +31,11 @@ export function setup()
|
||||
|
||||
function rotateCarousel(target: any)
|
||||
{
|
||||
|
||||
angle = (selectedIndex - target.id) * 20 + angle; //*20 to convert in angle
|
||||
carousel.style.transform = "translateZ(-880px) rotateY(" + angle + "deg)";
|
||||
|
||||
selectedIndex = target;
|
||||
|
||||
selectedIndex = target.id;
|
||||
CellScript(target);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,30 +35,30 @@ enum launcher
|
||||
export function populateGrid()
|
||||
{
|
||||
var steamToken;
|
||||
const Store = require("../js/store");
|
||||
const userAgent = navigator.userAgent.toLowerCase();
|
||||
var isElectron = userAgent.indexOf(" electron/") > -1;
|
||||
const store = new Store("SteamGamesMetas");
|
||||
if (isElectron)
|
||||
{
|
||||
// const Store = require("../js/store");
|
||||
// const userAgent = navigator.userAgent.toLowerCase();
|
||||
// var isElectron = userAgent.indexOf(" electron/") > -1;
|
||||
// const store = new Store("SteamGamesMetas");
|
||||
// if (isElectron)
|
||||
// {
|
||||
|
||||
const tknStore = new Store("account");
|
||||
steamToken = tknStore.get("steam");
|
||||
console.log("steamToken: " + steamToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
// const tknStore = new Store("account");
|
||||
// steamToken = tknStore.get("steam");
|
||||
// console.log("steamToken: " + steamToken);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
console.log("AGENT IS NOT ELECTRON, NO HANDLING FOR NOW");
|
||||
steamToken = "76561198250223174"; //A default steam client id (for testing only)
|
||||
}
|
||||
// }
|
||||
|
||||
$.get("https://api.steampowered.com/IPlayerService/GetOwnedGames/v1/" +
|
||||
$.getJSON("https://api.steampowered.com/IPlayerService/GetOwnedGames/v1/" +
|
||||
"?key=7C218E8D1347C3CD6CB8117E5ED533BC" +
|
||||
"&steamid=" + steamToken +
|
||||
"&include_appinfo=1" +
|
||||
"&include_played_free_games=1" +
|
||||
"&appids_filter=", (data) =>
|
||||
{
|
||||
"&appids_filter=&format=json", (data) =>
|
||||
{//https://api.steampowered.com/IPlayerService/GetOwnedGames/v1/?key=7C218E8D1347C3CD6CB8117E5ED533BC&steamid=76561198250223174&include_appinfo=1&include_played_free_games=1&appids_filter=
|
||||
let response: SteamResponse = data.response;
|
||||
|
||||
let grid = document.getElementById("library");
|
||||
@@ -72,11 +72,11 @@ export function populateGrid()
|
||||
element.onclick = () => { onGameClick(game); }
|
||||
|
||||
//Check if the game is already downloaded and if it is, display it
|
||||
if(isElectron)
|
||||
{
|
||||
if(store.get(game.appid) != null)
|
||||
gridHtml += '<img src="/drawable/check.svg" style="position: absolute; right: 0; padding: 5px;"/>'
|
||||
}
|
||||
// if(isElectron)
|
||||
// {
|
||||
// if(store.get(game.appid) != null)
|
||||
// gridHtml += '<img src="/drawable/check.svg" style="position: absolute; right: 0; padding: 5px;"/>'
|
||||
// }
|
||||
|
||||
element.innerHTML = gridHtml;
|
||||
if (grid != null)
|
||||
|
||||
Reference in New Issue
Block a user