-
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.
webapp: new pages DiscordBotInfo and WebBluetoothTool & update Home
- Loading branch information
1 parent
a056d4b
commit 56a342b
Showing
7 changed files
with
121 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package fmgp.webapp | ||
|
||
import org.scalajs.dom | ||
import org.scalajs.dom.HTMLElement | ||
import com.raquo.laminar.api.L._ | ||
import com.raquo.laminar.nodes.ReactiveHtmlElement | ||
import typings.std.stdStrings.text | ||
import typings.mermaid | ||
|
||
import fmgp.did._ | ||
object DiscordBotInfo { | ||
|
||
def apply(): HtmlElement = // rootElement | ||
div( | ||
p("Discord Bot"), | ||
p("The Discord bot is this a WIP (2023-11-05)"), | ||
p( | ||
"The Bot id is ", | ||
code("1170442329883168788"), | ||
". ", | ||
a( | ||
href := "https://discord.com/api/oauth2/authorize?client_id=1170442329883168788&permissions=8&scope=bot", | ||
"Click here to add the Bot" | ||
), | ||
". The permission need to be refine (is Administrator for now)." | ||
), | ||
p("Capabilities:"), | ||
ul( | ||
li("[WIP] As a Discord user proved that you control the DID"), | ||
li("[TODO] Setup Discord ROLEs based on DID Comm interactions"), | ||
li("[TODO] As a DID get the Verifiable Credentials that you control a Discord user"), | ||
li("[TODO] Setup Discord ROLEs based on Verifiable Credentials"), | ||
) | ||
) | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package fmgp.webapp | ||
|
||
import org.scalajs.dom | ||
import org.scalajs.dom.HTMLElement | ||
import com.raquo.laminar.api.L._ | ||
import com.raquo.laminar.nodes.ReactiveHtmlElement | ||
import typings.std.stdStrings.text | ||
import typings.mermaid | ||
|
||
import fmgp.did._ | ||
object WebBluetoothTool { | ||
|
||
def apply(): HtmlElement = // rootElement | ||
div( | ||
p("WebBluetoothTool"), | ||
p("The Discord bot is this a WIP (2023-09-10)"), | ||
p( | ||
"Specs of ", | ||
a( | ||
href := "https://translate.google.pt/?sl=en&tl=pt&text=we%20did%20come%20capabilities&op=translate", | ||
"Web Bluetooth API" | ||
), | ||
), | ||
) | ||
|
||
} |