-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,303 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
import { Page, Project } from "../types"; | ||
|
||
export let project: Project = { | ||
id: 29, | ||
created_at: "2020-10-23T15:59:33.779478Z", | ||
description: "", | ||
edit_access: null, | ||
add_remove_access: null, | ||
private: false, | ||
slug: "miltary-contractors", | ||
title: "Miltary Contractors", | ||
updated_at: "2020-10-23T15:59:33.896698Z", | ||
user: 1, | ||
}; | ||
|
||
export let editableProject: Project = { | ||
id: 29, | ||
created_at: "2020-10-23T15:59:33.779478Z", | ||
description: "", | ||
edit_access: true, | ||
add_remove_access: null, | ||
private: false, | ||
slug: "miltary-contractors", | ||
title: "Miltary Contractors", | ||
updated_at: "2020-10-23T15:59:33.896698Z", | ||
user: 1, | ||
}; | ||
|
||
export let projects: Page<Project> = { | ||
next: null, | ||
previous: null, | ||
count: 5, | ||
results: [ | ||
{ | ||
id: 2, | ||
created_at: "2020-10-27T16:48:08.161751Z", | ||
description: "A sample set. ", | ||
edit_access: null, | ||
add_remove_access: null, | ||
private: true, | ||
slug: "defense-dept-foia", | ||
title: "Defense Dept FOIA", | ||
updated_at: "2020-10-27T16:48:08.168482Z", | ||
user: 4, | ||
pinned: true, | ||
}, | ||
{ | ||
id: 5, | ||
created_at: "2020-11-10T16:24:55.027446Z", | ||
description: | ||
"DOJ Report on Bush Administration Interrogation Memos and Related Documents released by the house judiciary committee in March 2010.", | ||
edit_access: null, | ||
add_remove_access: null, | ||
private: false, | ||
slug: "interrogation-memo-report-doj", | ||
title: "Interrogation Memo Report (DOJ)", | ||
updated_at: "2020-11-10T16:24:55.070632Z", | ||
user: 4, | ||
}, | ||
{ | ||
id: 6, | ||
created_at: "2020-11-10T16:24:55.027659Z", | ||
description: "", | ||
edit_access: null, | ||
add_remove_access: null, | ||
private: false, | ||
slug: "the-financial-crisis", | ||
title: "The Financial Crisis", | ||
updated_at: "2020-11-10T16:24:55.071378Z", | ||
user: 1, | ||
}, | ||
{ | ||
id: 17, | ||
created_at: "2020-11-10T16:24:55.036977Z", | ||
description: "", | ||
edit_access: null, | ||
add_remove_access: null, | ||
private: false, | ||
slug: "pulitzer-please", | ||
title: "Pulitzer, Please", | ||
updated_at: "2020-11-10T16:24:55.097554Z", | ||
user: 14, | ||
}, | ||
{ | ||
id: 20, | ||
created_at: "2020-11-10T16:09:05.829402Z", | ||
description: "", | ||
edit_access: null, | ||
add_remove_access: null, | ||
private: false, | ||
slug: "illinois", | ||
title: "illinois", | ||
updated_at: "2020-11-10T16:09:05.873311Z", | ||
user: 3, | ||
}, | ||
{ | ||
id: 21, | ||
created_at: "2020-11-10T16:24:55.038969Z", | ||
description: "", | ||
edit_access: null, | ||
add_remove_access: null, | ||
private: false, | ||
slug: "documentcloud", | ||
title: "DocumentCloud", | ||
updated_at: "2020-11-10T16:24:55.103407Z", | ||
user: 4, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script lang="ts"> | ||
import { Pencil16 } from "svelte-octicons"; | ||
export let title: string; | ||
export let small: boolean = false; | ||
</script> | ||
|
||
<button | ||
{title} | ||
class="edit" | ||
class:small | ||
on:click|stopPropagation|preventDefault | ||
> | ||
<Pencil16 /> | ||
</button> | ||
|
||
<style> | ||
.edit { | ||
flex: 0 0 2rem; | ||
padding: 0.25rem; | ||
height: 1.5rem; | ||
width: 1.5rem; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
appearance: none; | ||
fill: var(--primary); | ||
background: transparent; | ||
border: none; | ||
border-radius: 1rem; | ||
cursor: pointer; | ||
} | ||
.edit.small { | ||
height: 1.25rem; | ||
width: 1.25rem; | ||
} | ||
.edit:hover { | ||
fill: var(--white); | ||
background: var(--primary); | ||
} | ||
</style> |
File renamed without changes.
Oops, something went wrong.