open board vote 2024 (#5)

This commit is contained in:
Jacob Bolda
2024-07-07 22:38:06 -05:00
committed by GitHub
parent 718a1cf65a
commit 48d8cd7115
7 changed files with 58 additions and 88 deletions

View File

@@ -2,21 +2,21 @@
<v-container style="max-width: 21cm">
<v-row>
<v-col align="center" class="header">
<h1>Tauri Board Election 2023</h1>
<h1>Tauri Board Election 2024</h1>
<p>
This year we invite <b>Tauri Working Group members</b> to cast their
vote. This page provides the voting tool. For general information
about this election see
<a
href="https://github.com/tauri-apps/governance-and-guidance/tree/main/board-election-2023"
href="https://github.com/tauri-apps/governance-and-guidance/tree/main/board-election-2024"
>the GitHub documentation</a
>
</p>
<p>
<b>Voting ended after July 12th, 2023.</b>
<!-- <p>
<b>Voting ended after July 12th, 2024.</b>
Please refer to the GitHub repository for results.
</p>
<!-- <v-btn
</p> -->
<v-btn
color="success"
width="5cm"
height="1.25cm"
@@ -54,11 +54,11 @@
<p>
For each of the following candidates, are you in favor of them
becoming a Tauri Board Director?
</p> -->
</p>
</v-col>
</v-row>
<!-- <v-row>
<v-row>
<draggable
:list="yesList"
group="people"
@@ -85,7 +85,7 @@
</v-col>
<v-col cols="2" class="right">
<v-avatar class="ma-3" size="75" rounded="1">
<v-img :src="element.avatar"></v-img>
<v-img :src="avatarIdToGitHubLink(element.avatar)"></v-img>
</v-avatar>
</v-col>
<v-col justify="center">
@@ -127,7 +127,7 @@
<v-row align="center">
<v-col cols="3" class="right">
<v-avatar class="ma-3" size="75" rounded="1">
<v-img :src="element.avatar"></v-img>
<v-img :src="avatarIdToGitHubLink(element.avatar)"></v-img>
</v-avatar>
</v-col>
<v-col justify="center">
@@ -169,7 +169,7 @@
<v-row align="center">
<v-col cols="3" class="right">
<v-avatar class="ma-3" size="75" rounded="1">
<v-img :src="element.avatar"></v-img>
<v-img :src="avatarIdToGitHubLink(element.avatar)"></v-img>
</v-avatar>
</v-col>
<v-col justify="center">
@@ -191,7 +191,7 @@
</v-card>
</template>
</draggable>
</v-row> -->
</v-row>
</v-container>
</template>
@@ -222,39 +222,42 @@ function shuffle(array: Candidate[]): Candidate[] {
export default {
data() {
return {
// mailto: "mailto:board@tauri.app",
// mailtoSubject: "Vote for Tauri Board Election 2023",
// yesList: <Candidate[]>[],
// noList: <Candidate[]>[],
// candidatesList: shuffle(CANDIDATES),
// showFallback: false,
mailto: "mailto:board@tauri.app",
mailtoSubject: "Vote for Tauri Board Election 2023",
yesList: <Candidate[]>[],
noList: <Candidate[]>[],
candidatesList: shuffle(CANDIDATES),
showFallback: false,
};
},
methods: {
// as_vote(): Vote {
// return {
// yes: this.yesList.map((c) => c.id),
// no: this.noList.map((c) => c.id),
// random_id: new_vote_id(),
// };
// },
// as_body(): string {
// return `Thank you for voting!
// Here is a summary of your vote.
// Make sure you send the email.
// -- Voted Yes --
// ${this.yesList.map((c) => c.name).join("\n")}
// -- Voted No --
// ${this.noList.map((c) => c.name).join("\n")}
// -- JSON vote --
// ${JSON.stringify(this.as_vote())}`;
// },
// clickFallback(e: Event): boolean {
// e.preventDefault();
// // Once opened, keep it open. But only open when you've decided on all candidates.
// this.showFallback = this.showFallback || this.candidatesList.length == 0;
// return true;
// },
avatarIdToGitHubLink(id: number) {
return `https://avatars.githubusercontent.com/u/${id}?v=4`
},
as_vote(): Vote {
return {
yes: this.yesList.map((c) => c.id),
no: this.noList.map((c) => c.id),
random_id: new_vote_id(),
};
},
as_body(): string {
return `Thank you for voting!
Here is a summary of your vote.
Make sure you send the email.
-- Voted Yes --
${this.yesList.map((c) => c.name).join("\n")}
-- Voted No --
${this.noList.map((c) => c.name).join("\n")}
-- JSON vote --
${JSON.stringify(this.as_vote())}`;
},
clickFallback(e: Event): boolean {
e.preventDefault();
// Once opened, keep it open. But only open when you've decided on all candidates.
this.showFallback = this.showFallback || this.candidatesList.length == 0;
return true;
},
},
computed: {
dragOptions() {

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:928d0cc0e4c5d100c5fc65051bc9194751e42584b2a42a2cb3e6194fed46fb70
size 10884

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4553e939cab506a888ef43c55bec77b49cc29993c2e6d8ecdbbd9db5e14a6972
size 7005

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b489bc186341efa9af7b7d3c271b6ed67813e090ce387dbe9b0d323e0850b72
size 3583

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ec80e34802234f92f52b1ff194c2c6caf355542fbd96e58ceccc1aac4b64c49
size 47627

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:60df2108d1f7c2fe588b2184d1df7f6e623120c87ec8141e638096c8b034463a
size 11026

View File

@@ -1,5 +1,5 @@
export const REPO_URL = "https://github.com/tauri-apps/governance-and-guidance";
export const CANDIDATE_PAGE = `${REPO_URL}/blob/main/board-election-2023/Candidates.md`;
export const CANDIDATE_PAGE = `${REPO_URL}/blob/main/board-election-2024/Candidates.md`;
export type CandidateId = string;
export interface Candidate {
@@ -10,34 +10,16 @@ export interface Candidate {
}
export const CANDIDATES: Candidate[] = [
// {
// id: "david-lemarier",
// name: "David Lemarier",
// avatar: "avatar-david.jpg",
// intro_url: `${CANDIDATE_PAGE}#david-lemarier`,
// },
// {
// id: "bill-avery",
// name: "Bill Avery",
// avatar: "avatar-bill.png",
// intro_url: `${CANDIDATE_PAGE}#bill-avery`,
// },
// {
// id: "jacob-bolda",
// name: "Jacob Bolda",
// avatar: "avatar-jacob.jpg",
// intro_url: `${CANDIDATE_PAGE}#jacob-bolda`,
// },
// {
// id: "zack-chapple",
// name: "Zack Chapple",
// avatar: "avatar-zack.jpg",
// intro_url: `${CANDIDATE_PAGE}#zack-chapple`,
// },
// {
// id: "robin-van-boven",
// name: "Robin van Boven",
// avatar: "avatar-robin.png",
// intro_url: `${CANDIDATE_PAGE}#robin-van-boven`,
// },
{
id: "daniel-thompson-yvetot",
name: "Daniel Thompson-Yvetot",
avatar: "35242872",
intro_url: `${CANDIDATE_PAGE}#daniel-thompson-yvetot`,
},
{
id: "lucas-nogueira",
name: "Lucas Nogueira",
avatar: "20051258",
intro_url: `${CANDIDATE_PAGE}#lucas-nogueira`,
},
];