Skip to content

Commit

Permalink
some content for devmode
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Jun 14, 2024
1 parent ef1f2df commit a5dcd6e
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 12 deletions.
7 changes: 6 additions & 1 deletion src/partials/rooted-vs-devmode.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<style>
table.rooted-vs-devmode tbody td {
text-align: center;
}
</style>
<h2>Rooted vs Dev Mode</h2>
<hr>
<div class="table-responsive">
<table class="table table-hover">
<table class="table table-hover rooted-vs-devmode">
<thead>
<tr>
<th>Use Case</th>
Expand Down
8 changes: 0 additions & 8 deletions src/views/devmode.hbs

This file was deleted.

6 changes: 6 additions & 0 deletions src/views/devmode/devmode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {Tooltip} from "bootstrap";

const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]');
tooltipTriggerList.forEach(function (tooltipTriggerEl) {
new Tooltip(tooltipTriggerEl);
});
55 changes: 55 additions & 0 deletions src/views/devmode/index.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{{#*inline "content"}}
<h1>Dev Mode</h1>
<p class="lead">
Use officially supported development mode to install homebrew apps and games.
</p>
{{> rooted-vs-devmode }}
<h2>Prerequisites</h2>
<hr>
<h2>Get started</h2>
<hr>
<h3>Get a Developer Account</h3>
<p>
You'll need a developer account to use Developer Mode.
Please read <a href="https://webostv.developer.lge.com/develop/getting-started/preparing-lg-account">
Preparing LG Account</a> for creating one.
</p>
<h3>Install Developer Mode App</h3>
<ol>
<li>Open LG Content Store</li>
<li>Search for "Developer Mode"</li>
<li>Select "Install"</li>
</ol>
<h3>Enable Developer Mode</h3>
<ol>
<li>Launch Developer Mode app</li>
<li>Login to Developer Mode app with developer account</li>
<li>Enable Developer Mode and wait for TV to restart</li>
</ol>
<h3>Prepare for Device Setup</h3>
<ol>
<li>Launch Developer Mode app again</li>
<li>Ensure "Dev Mode Status" is ON</li>
<li>Enable Key Server
<i class="bi bi-question-circle-fill" data-bs-toggle="tooltip"
data-bs-title="Key Server is used when you add TV to your computer"></i>
</li>
</ol>
<h2>Important Notes</h2>
<hr>
<ul>
<li>Developer Mode has a time limit of 1000 hours. Once expired, apps installed via Developer Mode will be removed.
You can reset the timer in the Developer Mode app.
</li>
<li>
You can only log in to one TV at a time with the same developer account. If you log in to another TV, the previous
TV will be logged out, disabling Developer Mode.
</li>
<li>
When you add the TV to webOS Dev Manager, the IP you use may change. To prevent this, you can set a static IP for
your TV.
</li>
</ul>
<script src="devmode.js"></script>
{{/inline}}
{{> page title="Dev Mode" }}
2 changes: 1 addition & 1 deletion src/views/rooting.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#*inline "content"}}
<style>
table td {
table.exploits tbody td {
text-align: center;
}
</style>
Expand Down
7 changes: 5 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ module.exports = {
entry: 'src/views/',
test: /\.(html|hbs)$/,
filename: ({filename, chunk: {name}}) => {
if (name.startsWith(`index${path.sep}`)) {
let segs = name.split(path.sep);
if (segs[0] === 'index') {
return 'index.html';
} else if (segs[segs.length - 1] === 'index') {
segs.pop();
}
return '[name]/index.html';
return `${segs.join('/')}/index.html`;
},
preprocessor: 'handlebars',
preprocessorOptions: {
Expand Down

0 comments on commit a5dcd6e

Please sign in to comment.