This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git


The following commit(s) were added to refs/heads/master by this push:
     new ae7da40  Minimal rendering (and no GraphQL yet)
ae7da40 is described below

commit ae7da40ceffb9bc3f96829ca8a802f18ac125dfa
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Tue May 19 18:12:32 2020 +0200

    Minimal rendering (and no GraphQL yet)
---
 org.apache.sling.graphql.samples.website/README.md |  7 +++
 .../apps/samples/article/article.html              | 54 ++++++++++++++++++++++
 .../content/graphql-website-demo.html              | 28 +++++++++++
 3 files changed, 89 insertions(+)

diff --git a/org.apache.sling.graphql.samples.website/README.md 
b/org.apache.sling.graphql.samples.website/README.md
new file mode 100644
index 0000000..9b607fd
--- /dev/null
+++ b/org.apache.sling.graphql.samples.website/README.md
@@ -0,0 +1,7 @@
+Apache Sling GraphQL demo website
+----
+
+This is a work in progress demo of the Sling GraphQL Core.
+
+For now, you can build and install it on a Sling Starter instance
+and start at http://localhost:8080/content/graphql-website-demo.html
\ No newline at end of file
diff --git 
a/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/apps/samples/article/article.html
 
b/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/apps/samples/article/article.html
new file mode 100644
index 0000000..576e553
--- /dev/null
+++ 
b/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/apps/samples/article/article.html
@@ -0,0 +1,54 @@
+<!doctype html>
+<!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/-->
+<html>
+    <head>
+        <title data-sly-set.title="${properties.title}">${title}</title>
+    </head>
+    <body>
+        <div class="content">
+            <h1>${title}</h1>
+
+            <div class="tags">
+                <h2>Tags</h2>
+                <ul>
+                    <sly data-sly-list.tag="${properties.tags}">
+                        <li>${tag}</li>
+                    </sly>
+                </ul>
+            </sly>
+    
+            <div class="tags">
+                <h2>See Also</h2>
+                <em>
+                    Most of these links fail for now - only the ones which 
happen to be from the same
+                    folder works.
+                </em>
+                <ul>
+                    <sly data-sly-list.seeAlso="${properties.seeAlso}">
+                        <li><a href="./${seeAlso}.html">${seeAlso}</a></li>
+                    </sly>
+                </ul>
+            </sly>
+
+            <hr/>
+            <div>${properties.text}</div>
+        </div>
+    </body>
+</html>
diff --git 
a/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/content/graphql-website-demo.html
 
b/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/content/graphql-website-demo.html
new file mode 100644
index 0000000..28e794f
--- /dev/null
+++ 
b/org.apache.sling.graphql.samples.website/src/main/resources/SLING-INF/initial-content/content/graphql-website-demo.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<!--/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/-->
+<html>
+    <body>
+        <h1>Sling GraphQL demo website</h1>
+
+        <p>This is early days...</p>
+
+        <a 
href="/content/articles/news/willow-mclaughlin-on-the-capacitor-of-back-end-similique-voluptas-aka-http.html">Example
 page</a>
+    </body>
+</html>

Reply via email to