-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-
- Loading branch information
Showing
8 changed files
with
135 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
{ | ||
"name": "DefaultDomains", | ||
"name": "DefaultDomains", | ||
"domains": { | ||
"cleaker.me": {"handler": "cleakerHandler", "state": "Active"}, | ||
"neurons.me": {"handler": "neuronsHandler", "state": "Active"}, | ||
"mlearning.me": {"handler": "mlearningHandler", "state": "Maintenance"} | ||
}, | ||
"domains2": { | ||
"cleaker.me": "cleakerHandler", | ||
"neurons.me": "neuronsHandler", | ||
"mlearning.me": "mlearningHandler", | ||
"mlearning.com": "mlearningHandler", | ||
"mlearning.studio": "mlearningHandler", | ||
"mdrn.me": "mdrnHandler", | ||
"monadlisa.me": "monadlisaHandler", | ||
"monadlisa.com": "monadlisaHandler", | ||
"netget.me": "netgetHandler", | ||
"orgboat.me": "orgboatHandler" | ||
} | ||
"mlearning.me": {"handler": "mlearningHandler", "state": "Maintenance"}, | ||
"mlearning.com": {"handler": "mlearningHandler", "state": "Active"}, | ||
"mlearning.studio": {"handler": "mlearningHandler", "state": "Active"}, | ||
"mdrn.me": {"handler": "mdrnHandler", "state": "Active"}, | ||
"monadlisa.me": {"handler": "monadlisaHandler", "state": "Active"}, | ||
"monadlisa.com": {"handler": "monadlisaHandler", "state": "Active"}, | ||
"netget.me": {"handler": "netgetHandler", "state": "Active"}, | ||
"orgboat.me": {"handler": "orgboatHandler", "state": "Active"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<form action="/addDomain" method="post"> | ||
<input type="text" name="domain" placeholder="Domain Name" required> | ||
<input type="text" name="handler" placeholder="Handler" required> | ||
<select name="state"> | ||
<option value="Active">Active</option> | ||
<option value="Inactive">Inactive</option> | ||
</select> | ||
<button type="submit" class="action-button">Add Domain</button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// src/netget.js | ||
import Gateway from './gateway.js'; | ||
class NetGet { | ||
constructor() { | ||
// Initialization code, if necessary | ||
} | ||
|
||
static loadDomainConfig(domainConfigPath) { | ||
try { | ||
const data = fs.readFileSync(domainConfigPath, 'utf8'); | ||
const domainConfig = JSON.parse(data); | ||
console.log('Loaded Domain Configuration:', domainConfig); | ||
// Additional processing or setup based on the domainConfig | ||
return domainConfig; | ||
} catch (err) { | ||
console.error('Error loading domain configuration:', err); | ||
return null; // Or throw an error, depending on your preference | ||
} | ||
} | ||
|
||
// NetGet related functionalities | ||
} | ||
NetGet.Gateway = Gateway; | ||
export default NetGet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters