Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
WIP - adding the Beta origami o-permutive component to enable a trial…
Browse files Browse the repository at this point in the history
… of Permutives functionality
  • Loading branch information
andrewgeorgiou1981 committed May 14, 2019
1 parent ddcda10 commit e0e5838
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"n-ui-foundations": "^3.0.6",
"next-session-client": "^2.3.4",
"o-ads": "^12.1.0",
"o-permutive": "1.0.0-beta.1",
"o-permutive": "1.0.0-beta.2",
"o-errors": "^3.6.1",
"o-expander": "^4.4.4",
"o-footer": "^6.0.10",
Expand Down
13 changes: 1 addition & 12 deletions browser/layout/wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,7 @@
};
</script>
{{/if}}
{{#if @root.flags.AdsPermutive}}
<div>
<div class="o-permutive" data-o-component="o-permutive"
data-o-permutive-auoto-init="false"
data-o-permutive-id="e1c3fd73-dd41-4abd-b80b-4278d52bf7aa"
data-o-permutive-key="b2b3b748-e1f6-4bd5-b2f2-26debc8075a"
data-o-permutive-page-type="article"
data-o-permutive-apiendpoint-user="https://ads-api.ft.com/v1/user"
data-o-permutive-apiendpoint-content="https://ads-api.ft.com/v1/content/5cfae92e-6cc5-11e9-80c7-60ee53e6681d"></div>
</div>
{{/if}}


<div class="n-layout">
<div class="n-layout__row n-layout__row--header">
{{#outputBlock 'above-header'}}{{/outputBlock}}
Expand Down
16 changes: 15 additions & 1 deletion components/n-ui/ads/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,21 @@ export default {
nCounterAdBlocking.init(flags);
});
if (flags && flags.get('AdsPermutive')) {
oPermutive.init();
let oPermConf = {
"appInfo" : {
"appName" : "article",
"contentId" : "5cfae92e-6cc5-11e9-80c7-60ee53e6681d"
},
"publicApiKeys" : {
"id" : "e1c3fd73-dd41-4abd-b80b-4278d52bf7aa",
"key" : "b2b3b748-e1f6-4bd5-b2f2-26debc8075a3"
},
"adsApi" : {
"user" : "https://ads-api.ft.com/v1/user",
"content" : "https://ads-api.ft.com/v1/content/"
}
}
oPermutive.init(false, oPermConf);
}
const adOptions = typeof opts === 'object' ? opts : {};

Expand Down

0 comments on commit e0e5838

Please sign in to comment.