Use medium column for platforms

Этот коммит содержится в:
Maarten 2024-10-10 22:44:12 +02:00
родитель f228b63365
Коммит b6fd085340
3 изменённых файлов: 17 добавлений и 5 удалений

Просмотреть файл

@ -1 +1 @@
{"meta":{"title":"Interference Tracker 2024","subtitle":"Foreign Interference Attribution Tracker"},"intro":[{"id":"intro","type":"text","text":"The DFRLab's Foreign Interference Attribution Tracker (FIAT) is an interactive, open-source database that captures allegations of foreign interference relevant to the 2024 election. This tool assesses the credibility, bias, evidence, transparency, and impact of each claim. Explore by scrolling through the timeline and cases below. Hover over a circle to see details about a particular case."},{"id":"overview","type":"concealed-text","title":"Overview","text":"This project builds public attribution standards, provides an independent and reliable record of foreign interference in the 2020 election, serves as a resource for stakeholders about the evolving threat, and helps to build public resilience against future foreign interference efforts and disinformation. It has been created in service of the [DFRLab's](https://www.atlanticcouncil.org/programs/digital-forensic-research-lab/) mission to identity, expose, and explain disinformation and to promote objective fact as the basis for governance worldwide. The FIAT dataset contains _NUMBER allegations_ of foreign interference originating from _NUMBER nations_. Stories regarding these claims have received a cumulative _NUMBER social media shares and engagements_. The dataset was last updated on _DATE_. This tool will be regularly updated as further allegations or attributions of foreign interference in the 2024 U.S. election are made public. If you have questions regarding the tool or would like to submit a case for consideration, please [contact the DFRLab](mailto:DFRLab@atlanticcouncil.org)."},{"id":"how-to-use","type":"concealed-text","title":"How To Use This Tool","text":"FIAT consists of six elements that work together in order to tell the complete story of foreign interference allegations in the 2024 U.S. elections. _Filters_ enable users to adjust the visibility of cases by Attribution Score, Actor, Nation, Platform, Method, Source, and Source Category. Free text search is also supported."}],"moreInfo":[{"id":"methodology","type":"concealed-text","title":"Methodology","text":"Blah Blah Blah text about methodology."},{"id":"case-selection","type":"concealed-text","title":"Case Selection","text":"Blah Blah Blah case selection content."},{"id":"about","type":"text","label":"About This Project","text":"Blah Blah Blah"},{"id":"about-dfrlab","type":"text","title":"About The DFRLab","text":"Blah Blah BLah"}]}
{"meta":{"title":"Interference Tracker 2024","subtitle":"Foreign Interference Attribution Tracker","og_site_name":"Interference Tracker 2024","og_description":"The DFRLab's Foreign Interference Attribution Tracker (FIAT) is an interactive, open-source database that captures allegations of foreign interference relevant to the 2024 election.","og_url":"https://interference2020.org/","og_image":""},"intro":[{"id":"intro","type":"text","text":"The DFRLab's Foreign Interference Attribution Tracker (FIAT) is an interactive, open-source database that captures allegations of foreign interference relevant to the 2024 election. This tool assesses the credibility, bias, evidence, transparency, and impact of each claim. Explore by scrolling through the timeline and cases below. Hover over a circle to see details about a particular case."},{"id":"overview","type":"concealed-text","title":"Overview","text":"This project builds public attribution standards, provides an independent and reliable record of foreign interference in the 2020 election, serves as a resource for stakeholders about the evolving threat, and helps to build public resilience against future foreign interference efforts and disinformation. It has been created in service of the <a href=https://www.atlanticcouncil.org/programs/digital-forensic-research-lab/>DFRLab's</a>) mission to identity, expose, and explain disinformation and to promote objective fact as the basis for governance worldwide. The FIAT dataset contains _NUMBER allegations_ of foreign interference originating from _NUMBER nations_. Stories regarding these claims have received a cumulative _NUMBER social media shares and engagements_. The dataset was last updated on _DATE_. This tool will be regularly updated as further allegations or attributions of foreign interference in the 2024 U.S. election are made public. If you have questions regarding the tool or would like to submit a case for consideration, please <a href=mailto:DFRLab@atlanticcouncil.org>contact the DFRLab</a>."},{"id":"how-to-use","type":"concealed-text","title":"How To Use This Tool","text":"FIAT consists of six elements that work together in order to tell the complete story of foreign interference allegations in the 2024 U.S. elections. _Filters_ enable users to adjust the visibility of cases by Attribution Score, Actor, Nation, Platform, Method, Source, and Source Category. Free text search is also supported."}],"moreInfo":[{"id":"methodology","type":"concealed-text","title":"Methodology","text":"Blah Blah Blah text about methodology."},{"id":"case-selection","type":"concealed-text","title":"Case Selection","text":"Blah Blah Blah case selection content."},{"id":"about","type":"text","label":"About This Project","text":"Blah Blah Blah"},{"id":"about-dfrlab","type":"text","title":"About The DFRLab","text":"Blah Blah BLah"}]}

Просмотреть файл

@ -80,7 +80,7 @@
on:itemsRemoved={(e) => actorNationFilter.unselect(e.detail)}
></Dropdown>
<Dropdown
items={addCount($platformFilter, 'platform', cases)}
items={addCount($platformFilter, 'medium', cases)}
label="Platform"
on:itemsAdded={(e) => platformFilter.select(e.detail)}
on:itemsRemoved={(e) => platformFilter.unselect(e.detail)}

Просмотреть файл

@ -45,8 +45,10 @@
);
cases = response;
cases = cases.filter((d) => d.attribution_id != '');
console.log(cases)
cases.forEach((d) => {
d.platform = splitString(d.platforms);
d.medium = splitString(d.medium)
d.actor_nation = splitString(d.actor_nation);
d.source = splitString(d.source);
d.methods = splitString(d.methods);
@ -69,11 +71,9 @@
d.show = false;
});
console.log(cases.map(d => d.campaign))
maxAttribution = max(cases.map((d) => d.attribution_score));
platformFilter.init(cases, 'platform');
platformFilter.init(cases, 'medium');
actorNationFilter.init(cases, 'actor_nation');
sourceFilter.init(cases, 'source');
sourceCategoryFilter.init(cases, 'source_category');
@ -191,6 +191,16 @@
<svelte:window bind:innerWidth />
<svelte:head>
<title>{copy.meta.title}</title>
<meta property="og:site_name" content={copy.meta.og_site_name} />
<meta property="og:description" content={copy.meta.og_description} />
<meta property="og:url" content={copy.meta.og_url} />
<meta property="og:image" content={copy.meta.og_image} />
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
</svelte:head>
{#if isMobile}
<div class="filter-button">
<button on:click={() => toggleSidebar()}
@ -277,6 +287,7 @@
{#if displayDataAs == 'Cards'}
<section class="section">
<div class="container">
<a href="https://fiat-2024-processed-data.s3.us-west-2.amazonaws.com/fiat_2024_attribution_data.csv">Download the data</a>
<div class="grid is-col-min-12">
{#each sortedCases as attrCase}
{#if attrCase.show}
@ -293,6 +304,7 @@
{#if displayDataAs == 'Table' && sortedCases.length > 0}
<section class="section">
<div class="container">
<a href="https://fiat-2024-processed-data.s3.us-west-2.amazonaws.com/fiat_2024_attribution_data.csv">Download the data</a>
<CaseTable cases={sortedCases}></CaseTable>
</div>
</section>