Skip to content

Commit

Permalink
Merge pull request #18 from rtCamp/feature/removing-demo-from-all-int…
Browse files Browse the repository at this point in the history
…ernal-pages

Removing demo from all internal pages
  • Loading branch information
fellyph authored Jan 23, 2024
2 parents d6cbb10 + d764af5 commit c985194
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/demos/chips/index.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%- include(commonPath + '/header.ejs') %>

<div class="container mx-auto py-8">
<h1 class="text-3xl font-bold mb-4 text-center">CHIPS Demos</h1>
<h1 class="text-3xl font-bold mb-4 text-center">CHIPS</h1>
<p class="text-center font-bold">Cookies Having Independent Partitioned State</p>
<div class="flex justify-center space-x-4 mt-4">
<a href="<%= protocol %>://<%= domainC %><% if (isPortPresent) { %>:<%= port %><% } %>/chips/analytics-first-party"
Expand Down
2 changes: 1 addition & 1 deletion src/demos/chips/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const uuid = require( 'uuid' );
router.get('/', (req, res) => {
// Send the default page
res.render(path.join(__dirname,'index'), {
title: 'CHIPS Demo'
title: 'CHIPS'
});
});
router.get('/analytics-first-party', (req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion src/demos/fedcm/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const router = express.Router();

router.get('/', (req, res) => {
res.render('common/under-construction', {
title: '🚧 FedCM Demo'
title: '🚧 FedCM'
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/demos/private-state-tokens/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const router = express.Router();
router.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'index.html'));
res.render('common/under-construction', {
title: '🚧 Private State Tokens Demo'
title: '🚧 Private State Tokens'
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/demos/related-websites-sets/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const router = express.Router();

router.get('/', (req, res) => {
res.render('common/under-construction', {
title: '🚧 Related Website Sets Demo'
title: '🚧 Related Website Sets'
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/scenarios/analytics/index.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%- include(commonPath + '/header.ejs') %>

<div class="container mx-auto py-8">
<h1 class="text-3xl font-bold mb-4 text-center">Analytics Demo</h1>
<h1 class="text-3xl font-bold mb-4 text-center">Analytics</h1>
<p class="text-lg font-bold mb-4 text-center">Here is a button that track clicks using third-party analytics service, check if it works.</p>
<script src="<%= protocol %>://<%= domainC %><% if (isPortPresent) { %>:<%= port %><% } %>/analytics/analytics.js"></script>
<div class="flex justify-center space-x-4 mt-4">
Expand Down
2 changes: 1 addition & 1 deletion src/scenarios/analytics/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const router = express.Router();
router.get('/', (req, res) => {
// Send the default page
res.render(path.join(__dirname,'index'), {
title: 'Analytics Demo'
title: 'Analytics'
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/scenarios/ecommerce/index.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%- include(commonPath + '/header.ejs') %>

<div class="container mx-auto py-8">
<h1 class="text-3xl font-bold mb-4 text-center">E-Commerce Demo</h1>
<h1 class="text-3xl font-bold mb-4 text-center">E-Commerce</h1>
<p class="text-lg font-bold mb-4 text-center">Here is an embedded Third-Party e-commerce site, check if you can add products to cart.</p>
<div class="mt-8 flex justify-center">
<iframe src="<%= protocol %>://<%= domainC %><% if (isPortPresent) { %>:<%= port %><% } %>/ecommerce/products" class="border border-8 rounded w-1/2 h-96"></iframe>
Expand Down
2 changes: 1 addition & 1 deletion src/scenarios/ecommerce/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const router = express.Router();
// Middleware to setup common rendering variables
router.use((req, res, next) => {
// Set common variables for rendering views
res.locals.title = 'E-Commerce Demo' // Set the page title
res.locals.title = 'E-Commerce - Privacy Sandbox' // Set the page title
next(); // Continue to the next middleware or route handler
});

Expand Down
2 changes: 1 addition & 1 deletion src/scenarios/embedded-video/index.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%- include(commonPath + '/header.ejs') %>

<div class="container mx-auto py-8">
<h1 class="text-3xl font-bold mb-4 text-center">Embedded Video Demo</h1>
<h1 class="text-3xl font-bold mb-4 text-center">Embedded Video</h1>
<p class="text-lg font-bold mb-4 text-center">Here is an embedded Third-Party video player, check if you can play the video and if it shows up in your history in your logged in account.</p>
<div class="mt-8 flex justify-center">
<iframe class="border border-8 rounded" width="560" height="315" src="https://www.youtube.com/embed/aqz-KE-bpKQ?si=CuSLBTjNMf9NA1eg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
Expand Down
2 changes: 1 addition & 1 deletion src/scenarios/embedded-video/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const router = express.Router();

router.get('/', (req, res) => {
res.render(path.join(__dirname,'index'), {
title: 'Embedded Video Demo'
title: 'Embedded Video'
});
});
module.exports = router;
2 changes: 1 addition & 1 deletion src/scenarios/payment-gateway/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const router = express.Router();

router.get( '/', ( req, res ) => {
res.render( path.join( __dirname, 'checkout' ), {
title: 'Payment Gateway Demo',
title: 'Payment Gateway',
item: "Virtual Badge for testing the site",
price: 10,
} );
Expand Down
6 changes: 3 additions & 3 deletions src/scenarios/single-sign-on/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ router.get('/profile', (req, res) => {
const domain = req.get('host');

if (email) {
res.render(path.join(__dirname, 'profile'), { title: 'Single Sign-On Demo for ' + domain, email: email });
res.render(path.join(__dirname, 'profile'), { title: 'Single Sign-On for ' + domain, email: email });
} else {
res.redirect('/single-sign-on/sign-in');
}
Expand All @@ -29,7 +29,7 @@ router.get('/profile', (req, res) => {
router.get('/logout', (req, res) => {
const domain = req.get('host');
res.clearCookie('localemail');
res.render(path.join(__dirname, 'logout'), { title: 'Single Sign-On Demo for ' + domain });
res.render(path.join(__dirname, 'logout'), { title: 'Single Sign-On for ' + domain });
});

router.get('/login', (req, res) => {
Expand All @@ -45,7 +45,7 @@ router.get('/login', (req, res) => {

router.get('/sign-in', (req, res) => {
const domain = req.get('host');
res.render(path.join(__dirname, 'signin'), { title: 'Single Sign-On Demo for ' + domain, protocol: 'https', domainC: res.locals.domainC });
res.render(path.join(__dirname, 'signin'), { title: 'Single Sign-On for ' + domain, protocol: 'https', domainC: res.locals.domainC });
});

router.post('/validate', (req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion src/scenarios/single-sign-on/signin.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%- include(commonPath + '/header.ejs') %>

<div class="container mx-auto py-8">
<h1 class="text-3xl font-bold mb-4 text-center">Single Sign-On Demo</h1>
<h1 class="text-3xl font-bold mb-4 text-center">Single Sign-On</h1>
<div class="text-center">
<button id="signInButton" class="bg-blue-500 text-white font-bold py-2 px-4 rounded-full inline-block">Sign In</button>
</div>
Expand Down

0 comments on commit c985194

Please sign in to comment.