diff --git a/src/backend/api.js b/src/backend/api.js index c51845ed..fe8cc0a3 100644 --- a/src/backend/api.js +++ b/src/backend/api.js @@ -98,6 +98,10 @@ export const wikiDiscovery = async ({ sort, direction, active, currentPage, resu })).data } +export const policyByDate = async ({ policyType, activeFrom }) => { + return (await axios.get(`/v1/policies/${policyType}/by_active_from/${activeFrom}`)).data +} + export const importEntities = async ({ wikiId, entityIds = [ diff --git a/src/components/Pages/Components/PolicyNavigationPanel.vue b/src/components/Pages/Components/PolicyNavigationPanel.vue index adbdfb15..1557d78c 100644 --- a/src/components/Pages/Components/PolicyNavigationPanel.vue +++ b/src/components/Pages/Components/PolicyNavigationPanel.vue @@ -5,9 +5,9 @@ - + - + {{ link.title }} @@ -29,7 +29,7 @@ export default { name: 'NavigationPanel', props: { title: String, - currentPath: String, + currentLink: Number, links: Array, }, } diff --git a/src/components/Pages/TermsOfUse/TermsOfUseNavigationPanel.vue b/src/components/Pages/TermsOfUse/TermsOfUseNavigationPanel.vue index 7ed9f406..2ca6ac6c 100644 --- a/src/components/Pages/TermsOfUse/TermsOfUseNavigationPanel.vue +++ b/src/components/Pages/TermsOfUse/TermsOfUseNavigationPanel.vue @@ -1,5 +1,5 @@ + + diff --git a/src/components/Pages/TermsOfUse/terms-of-use/2022-01-01.vue b/src/components/Pages/TermsOfUse/terms-of-use/2022-01-01.vue new file mode 100644 index 00000000..aa61a3b9 --- /dev/null +++ b/src/components/Pages/TermsOfUse/terms-of-use/2022-01-01.vue @@ -0,0 +1,1308 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index dcaaba2c..7b005e77 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -15,12 +15,13 @@ import EmailVerification from '@/components/Pages/EmailVerification' import CreateWiki from '@/components/Pages/CreateWiki' import TabSettings from '@/components/Pages/ManageWiki/TabSettings' import TermsOfUse from '@/components/Pages/TermsOfUse/Current.vue' +import TermsOfUseUpcoming from '@/components/Pages/TermsOfUse/Upcoming.vue' +import TermsOfUseRenderer from '@/components/Pages/TermsOfUse/TermsOfUseRenderer.vue' import Privacy from '@/components/Pages/Privacy/Privacy' import User from '@/components/Pages/User' import Discovery from '@/components/Pages/Discovery/Discovery' import Complaint from '@/components/Pages/Complaint.vue' import HostingPolicy from '@/components/Pages/HostingPolicy.vue' -import TermsOfUseUpcoming from '@/components/Pages/TermsOfUse/Upcoming.vue' import DsaInfo from '@/components/Pages/DsaInfo/DsaInfo' Vue.use(Router) @@ -71,16 +72,23 @@ const router = new Router({ name: 'ResetPassword', component: ResetPassword, }, + // TODO should be handled by TermsOfUseRenderer { path: '/terms-of-use', name: 'TermsOfUse', component: TermsOfUse, }, + // TODO should be handled by TermsOfUseRenderer { path: '/terms-of-use/upcoming', name: 'TermsOfUseUpcoming', component: TermsOfUseUpcoming, }, + { + path: '/terms-of-use/:activeFrom', + name: 'TermsOfUseRenderer', + component: TermsOfUseRenderer, + }, { path: '/hosting-policy/pilot', name: 'Hosting Policy',