This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 91802d0 feat(oauth): polish text
91802d0 is described below
commit 91802d0fa138d2d51ed03ae2b2389d4a244fac23
Author: Robert Munteanu <[email protected]>
AuthorDate: Fri Oct 11 17:44:29 2024 +0200
feat(oauth): polish text
---
.../oauth-demo/components/github-repos/github-repos.html | 3 ++-
.../apps/oauth-demo/components/welcome/welcome.html | 16 +++++++++++++++-
.../apps/oauth-demo/components/youtube-videos/show.html | 3 ++-
.../jcr_root/content/oauth-demo/static/css/output.css | 8 ++++++++
4 files changed, 27 insertions(+), 3 deletions(-)
diff --git
a/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/github-repos/github-repos.html
b/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/github-repos/github-repos.html
index b6d6eac..8bee3c2 100644
---
a/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/github-repos/github-repos.html
+++
b/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/github-repos/github-repos.html
@@ -1,9 +1,10 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/oauth-demo/static/css/output.css" rel="stylesheet">
+ <title>GitHub Repositories</title>
</head>
<body
data-sly-use.github="org.apache.sling.samples.oauth_demo.GithubRepositoriesModel">
<main>
diff --git
a/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/welcome/welcome.html
b/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/welcome/welcome.html
index 70b4083..fc6e025 100644
---
a/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/welcome/welcome.html
+++
b/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/welcome/welcome.html
@@ -1,9 +1,10 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/oauth-demo/static/css/output.css" rel="stylesheet">
+ <title>Sling OAuth Demo</title>
</head>
<body>
<main>
@@ -18,6 +19,19 @@
<p>Please <a
href="/system/sling/login.html?resource=${resource.path}.html"
class="underline">log in</a> to access the demo pages.</p>
</div>
</sly>
+
+ <h2>About the demo</h2>
+ <p>This application shows the expected basic usage of the <a
class="underline"
href="https://github.com/apache/sling-whiteboard/tree/master/org.apache.sling.servlets.oidc-rp"">Sling
OAuth Client bundle (whiteboard)</a></em></p>
+
+ <p>It exposes two pages:
+ <ul class="list-disc list-inside">
+ <li>The Youtube videos page ( <a class="underline"
href="https://github.com/apache/sling-samples/tree/master/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/youtube-videos">oauth-demo/components/youtube-videos</a>),
implemented using a Sling Servlet ( <a class="underline"
href="https://github.com/apache/sling-samples/blob/master/oauth/core/src/main/java/org/apache/sling/samples/oauth_demo/impl/YoutubeSearchServlet.java">YoutubeSearchServlet</a>)
</li>
+ <li>The GitHub repositories page ( <a class="underline"
href="https://github.com/apache/sling-samples/tree/master/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/github-repos">oauth-demo/components/github-repos</a>),
backed by a Sling Model ( <a class="underline"
href="https://github.com/apache/sling-samples/blob/master/oauth/core/src/main/java/org/apache/sling/samples/oauth_demo/GithubRepositoriesModel.java">GithubRepositoriesModel</a>)
</li>
+ </ul>
+ </p>
+
+ <p>To use the application you will need to register this application
as OAuth clients to Google and/or Github.</p>
+
</main>
</body>
</html>
\ No newline at end of file
diff --git
a/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/youtube-videos/show.html
b/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/youtube-videos/show.html
index 22fced8..9feea47 100644
---
a/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/youtube-videos/show.html
+++
b/oauth/ui.apps/src/main/content/jcr_root/apps/oauth-demo/components/youtube-videos/show.html
@@ -1,9 +1,10 @@
<!doctype html>
-<html>
+<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/oauth-demo/static/css/output.css" rel="stylesheet">
+ <title>YouTube Videos</title>
</head>
<body
data-sly-use.youtube="org.apache.sling.samples.oauth_demo.YoutubeVideosModel">
<main>
diff --git
a/oauth/ui.apps/src/main/content/jcr_root/content/oauth-demo/static/css/output.css
b/oauth/ui.apps/src/main/content/jcr_root/content/oauth-demo/static/css/output.css
index 8ed5df2..9127bf7 100644
---
a/oauth/ui.apps/src/main/content/jcr_root/content/oauth-demo/static/css/output.css
+++
b/oauth/ui.apps/src/main/content/jcr_root/content/oauth-demo/static/css/output.css
@@ -829,6 +829,14 @@ p {
flex-basis: 33.333333%;
}
+.list-inside {
+ list-style-position: inside;
+}
+
+.list-disc {
+ list-style-type: disc;
+}
+
.flex-row {
flex-direction: row;
}