SHA256
Обновить лицензии, исторический HEADER и ссылки CORE/CONTENT
This commit is contained in:
@@ -432,6 +432,15 @@ function createEntryCard({ item, inspection, parseError, channelNames, blockchai
|
||||
arweave.textContent = t('screens.my_blockchain_view.text_006');
|
||||
actions.append(arweave);
|
||||
}
|
||||
if (inspection?.contentDataItemId) {
|
||||
const content = document.createElement('a');
|
||||
content.className = 'my-blockchain-entry__action my-blockchain-entry__external';
|
||||
content.href = `https://arweave.net/${inspection.contentDataItemId}`;
|
||||
content.target = '_blank';
|
||||
content.rel = 'noopener noreferrer';
|
||||
content.textContent = t('screens.my_blockchain_view.content_arweave_link');
|
||||
actions.append(content);
|
||||
}
|
||||
if (actions.childElementCount) details.append(actions);
|
||||
|
||||
const info = document.createElement('div');
|
||||
|
||||
@@ -4,7 +4,7 @@ import { state } from '../state.js';
|
||||
|
||||
const LICENSES = [
|
||||
{ name: 'CC BY-NC 4.0', original: 'https://arweave.net/Xtym3vUAyt7OgFBINBh1ene-5360Ah76c6D-O9ywxVE', russian: 'https://creativecommons.org/licenses/by-nc/4.0/legalcode.ru' },
|
||||
{ name: 'SCDL 1.0', original: 'https://arweave.net/wTyNiQvgPxBpMJOVauzVhtKikv_1kmTN18BhbIrcKys', russian: './static-sites/licenses/SCDL-1.0-ru.html' },
|
||||
{ name: 'SHiNE-CDL 1.0', original: 'https://arweave.net/Q6mC26N5J1I2oudliGa-e-TTKjoQLigpXh7yH9EXjro', russian: 'https://arweave.net/Efr7_32Joi4DjMZKRLKeLeoZZRqB9pg3_LZsi_LpRU8' },
|
||||
];
|
||||
|
||||
export const pageMeta = { id: 'registration-licenses-view', get title() { return t('screens.registration_licenses.title'); }, showAppChrome: false };
|
||||
@@ -27,18 +27,22 @@ export function render({ navigate }) {
|
||||
for (const [index, license] of LICENSES.entries()) {
|
||||
const title = document.createElement('h2'); title.textContent = license.name; body.append(title);
|
||||
paragraph(index === 0 ? 'cc_description' : 'scdl_description');
|
||||
const links = document.createElement('p'); links.className = 'signup-guidance';
|
||||
const original = document.createElement('a'); original.href = license.original; original.target = '_blank'; original.rel = 'noopener noreferrer'; original.textContent = t('screens.registration_licenses.original');
|
||||
const russian = document.createElement('a'); russian.href = license.russian; russian.target = '_blank'; russian.rel = 'noopener noreferrer'; russian.textContent = t('screens.registration_licenses.russian');
|
||||
links.append(original, document.createTextNode(' · '), russian); body.append(links);
|
||||
const links = document.createElement('div'); links.className = 'signup-license-links';
|
||||
const original = document.createElement('a'); original.className = 'secondary-btn signup-license-link'; original.href = license.original; original.target = '_blank'; original.rel = 'noopener noreferrer'; original.textContent = t('screens.registration_licenses.original');
|
||||
const russian = document.createElement('a'); russian.className = 'secondary-btn signup-license-link'; russian.href = license.russian; russian.target = '_blank'; russian.rel = 'noopener noreferrer'; russian.textContent = t('screens.registration_licenses.russian');
|
||||
links.append(original, russian); body.append(links);
|
||||
}
|
||||
const readFull = document.createElement('p');
|
||||
const readFullStrong = document.createElement('strong');
|
||||
readFullStrong.textContent = t('screens.registration_licenses.read_full');
|
||||
readFull.append(readFullStrong); body.append(readFull);
|
||||
const important = document.createElement('h2'); important.textContent = t('screens.registration_licenses.important'); body.append(important);
|
||||
const list = document.createElement('ul');
|
||||
for (const key of ['copyright', 'irrevocable', 'permanent', 'owned_rights', 'private_messages']) {
|
||||
for (const key of ['copyright', 'scope', 'irrevocable', 'permanent', 'owned_rights', 'private_messages', 'authentic_texts']) {
|
||||
const item = document.createElement('li'); item.textContent = t(`screens.registration_licenses.${key}`); list.append(item);
|
||||
}
|
||||
body.append(list);
|
||||
paragraph('confirmation'); paragraph('signature');
|
||||
paragraph('confirmation'); paragraph('signature'); paragraph('license_updates');
|
||||
const accept = document.createElement('button'); accept.type = 'button'; accept.className = 'primary-btn signup-next'; accept.textContent = t('screens.registration_licenses.accept');
|
||||
accept.addEventListener('click', () => { draft.licensesAccepted = true; navigate(draft.flowType === 'free' ? 'registration-email-view' : 'registration-payment-view'); });
|
||||
body.append(accept);
|
||||
|
||||
Reference in New Issue
Block a user