stuff
This commit is contained in:
202
src/data/bird.ts
Normal file
202
src/data/bird.ts
Normal file
@@ -0,0 +1,202 @@
|
||||
export const birds = [
|
||||
'Varied Thrush',
|
||||
'Rock Dove',
|
||||
'California Quail',
|
||||
'Yellow-faced Grassquit',
|
||||
'American Dipper',
|
||||
'Tufted Puffin',
|
||||
"Le Conte's Thrasher",
|
||||
"Cassin's Vireo",
|
||||
'Buff-bellied Hummingbird',
|
||||
'Red Crossbill',
|
||||
'Little Ringed Plover',
|
||||
'American Avocet',
|
||||
'Little Curlew',
|
||||
'Tree Swallow',
|
||||
'Three-toed Woodpecker',
|
||||
'Bahama Mockingbird',
|
||||
'Wandering Albatross',
|
||||
'Hepatic Tanager',
|
||||
'Ashy Storm-Petrel',
|
||||
'Hoary Redpoll',
|
||||
'Lazuli Bunting',
|
||||
'Common House-Martin',
|
||||
'Varied Bunting',
|
||||
'Pygmy Nuthatch',
|
||||
'American Coot',
|
||||
'Shiny Cowbird',
|
||||
'Rufous-capped Warbler',
|
||||
'Eastern Wood-Pewee',
|
||||
'Common Snipe',
|
||||
'Northern Pygmy-Owl',
|
||||
'Wood Stork',
|
||||
'Gray-spotted Flycatcher',
|
||||
'Bahama Woodstar',
|
||||
'Black-backed Wagtail',
|
||||
'Bean Goose',
|
||||
'Buff-breasted Sandpiper',
|
||||
'Northern Shoveler',
|
||||
'Cinnamon Teal',
|
||||
'Ruffed Grouse',
|
||||
'Orchard Oriole',
|
||||
'Black-footed Albatross',
|
||||
'Mottled Duck',
|
||||
'Red-headed Woodpecker',
|
||||
'Double-crested Cormorant',
|
||||
'Little Gull',
|
||||
'Rufous Hummingbird',
|
||||
'American Tree Sparrow',
|
||||
'Black Swift',
|
||||
'Fish Crow',
|
||||
'Yellow-nosed Albatross',
|
||||
'Ruddy Ground-Dove',
|
||||
'White-winged Scoter',
|
||||
'Black-capped Vireo',
|
||||
'Chestnut-sided Warbler',
|
||||
'Turkey Vulture',
|
||||
'Mississippi Kite',
|
||||
'Sage Thrasher',
|
||||
'Whiskered Screech-Owl',
|
||||
'Yucatan Vireo',
|
||||
'Mountain Chickadee',
|
||||
"Lewis's Woodpecker",
|
||||
'Passenger Pigeon',
|
||||
"Sabine's Gull",
|
||||
'Black-billed Magpie',
|
||||
'Florida Scrub-Jay',
|
||||
'Plumbeous Vireo',
|
||||
'Hoary Redpoll',
|
||||
'Dusky Warbler',
|
||||
"Couch's Kingbird",
|
||||
'Double-striped Thick-knee',
|
||||
'Canvasback',
|
||||
'Warbling Vireo',
|
||||
'Western Scrub-Jay',
|
||||
'Green-winged Teal',
|
||||
'Spot-breasted Oriole',
|
||||
'American Bittern',
|
||||
'White-winged Dove',
|
||||
'Fieldfare',
|
||||
'Barn Swallow',
|
||||
'Golden-crowned Kinglet',
|
||||
'Alder Flycatcher',
|
||||
'Spotted Rail',
|
||||
'Great Egret',
|
||||
'Peregrine Falcon',
|
||||
'Pacific-slope Flycatcher',
|
||||
'Far Eastern Curlew',
|
||||
'Whiskered Auklet',
|
||||
'Yellow-billed Magpie',
|
||||
'Eurasian Woodcock',
|
||||
'Hepatic Tanager',
|
||||
'Buff-bellied Hummingbird',
|
||||
'Indigo Bunting',
|
||||
"Gambel's Quail",
|
||||
'Northern Waterthrush',
|
||||
'Eurasian Wryneck',
|
||||
"Audubon's Oriole",
|
||||
'Gilded Flicker',
|
||||
'Red-tailed Hawk',
|
||||
'Zenaida Dove',
|
||||
'Common Black-Hawk',
|
||||
'Swamp Sparrow',
|
||||
'Bahama Swallow',
|
||||
'Jack Snipe',
|
||||
"Le Conte's Thrasher",
|
||||
'House Wren',
|
||||
'Osprey',
|
||||
'Savannah Sparrow',
|
||||
'Eurasian Wigeon',
|
||||
'Mexican Jay',
|
||||
'Yellow Wagtail',
|
||||
'Green Sandpiper',
|
||||
'Greater Shearwater',
|
||||
'Black-legged Kittiwake',
|
||||
'Elegant Tern',
|
||||
'Tufted Duck',
|
||||
'Gray-headed Chickadee',
|
||||
'Spotted Sandpiper',
|
||||
'Barn Swallow',
|
||||
'Bank Swallow',
|
||||
'Scarlet Ibis',
|
||||
'Spotted Redshank',
|
||||
'Lark Bunting',
|
||||
'American Golden-Plover',
|
||||
'House Sparrow',
|
||||
'Laysan Albatross',
|
||||
'Whooper Swan',
|
||||
'Marbled Murrelet',
|
||||
"Townsend's Solitaire",
|
||||
'Flesh-footed Shearwater',
|
||||
'European Storm-Petrel',
|
||||
'Manx Shearwater',
|
||||
'Fieldfare',
|
||||
'Least Bittern',
|
||||
'Eskimo Curlew',
|
||||
'Buff-collared Nightjar',
|
||||
'White-breasted Nuthatch',
|
||||
'Lanceolated Warbler',
|
||||
'Bridled Tern',
|
||||
'Yellow Wagtail',
|
||||
'Jack Snipe',
|
||||
'Western Tanager',
|
||||
'Common Goldeneye',
|
||||
'Greater Scaup',
|
||||
'Belted Kingfisher',
|
||||
'Rustic Bunting',
|
||||
'Olive-sided Flycatcher',
|
||||
'Bahama Mockingbird',
|
||||
'White-tailed Ptarmigan',
|
||||
'Lesser Scaup',
|
||||
'Common Murre',
|
||||
'Siberian Rubythroat',
|
||||
'Siberian Rubythroat',
|
||||
'Eared Trogon',
|
||||
'Swallow-tailed Kite',
|
||||
'Sulphur-bellied Flycatcher',
|
||||
'Bohemian Waxwing',
|
||||
'Common Sandpiper',
|
||||
'Altamira Oriole',
|
||||
'Mountain Plover',
|
||||
'Common Ground-Dove',
|
||||
'Great Gray Owl',
|
||||
'Common Tern',
|
||||
'Great Black-backed Gull',
|
||||
'Horned Lark',
|
||||
'Tricolored Heron',
|
||||
'California Towhee',
|
||||
'Fulvous Whistling-Duck',
|
||||
'Hoary Redpoll',
|
||||
'Plumbeous Vireo',
|
||||
'Caribbean Elaenia',
|
||||
'Purple Martin',
|
||||
'American Crow',
|
||||
'Key West Quail-Dove',
|
||||
'Jungle Nightjar',
|
||||
'Common Redpoll',
|
||||
'Dusky Warbler',
|
||||
'Neotropic Cormorant',
|
||||
'Chestnut-backed Chickadee',
|
||||
'Black Catbird',
|
||||
'Redhead',
|
||||
'American Tree Sparrow',
|
||||
"Le Conte's Sparrow",
|
||||
'Neotropic Cormorant',
|
||||
'Wood Duck',
|
||||
'Plumbeous Vireo',
|
||||
'Bahama Mockingbird',
|
||||
'Greater White-fronted Goose',
|
||||
'Elegant Trogon',
|
||||
'Jack Snipe',
|
||||
'American Black Duck',
|
||||
'Killdeer',
|
||||
'Brown Jay',
|
||||
'Pine Warbler',
|
||||
'Nashville Warbler',
|
||||
'Winter Wren',
|
||||
'Blue Jay',
|
||||
'Snowy Egret',
|
||||
'Gray Bunting',
|
||||
"Steller's Jay",
|
||||
'Wood Warbler'
|
||||
]
|
||||
@@ -1,4 +1,7 @@
|
||||
import { createPinia } from 'pinia'
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
|
||||
createApp(App).mount('#app')
|
||||
const pinia = createPinia()
|
||||
|
||||
createApp(App).use(pinia).mount('#app')
|
||||
|
||||
@@ -13,11 +13,15 @@ const hasQualityIssues = computed(() => props.feature.qualityIssue > 0)
|
||||
<div class="feature-item bin" :class="{ live: isLive }">
|
||||
<div>
|
||||
{{ feature.name }}
|
||||
<span class="numeric">({{ feature.complexity }})</span>
|
||||
</div>
|
||||
<div class="lead-time numeric">{{ feature.leadTime }} days</div>
|
||||
<div v-if="hasQualityIssues" class="red-bin numeric">
|
||||
{{ feature.qualityIssue }} 🔴
|
||||
<div class="numeric">
|
||||
({{ feature.complexity }})
|
||||
<div class="indicator">
|
||||
<div class="lead-time numeric">{{ feature.leadTime }} days</div>
|
||||
<div v-if="hasQualityIssues" class="red-bin">
|
||||
{{ feature.qualityIssue }} 🔴
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -29,11 +33,24 @@ const hasQualityIssues = computed(() => props.feature.qualityIssue > 0)
|
||||
transition-timing-function: ease-out;
|
||||
transition-delay: 1s 2s;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 1rem;
|
||||
|
||||
&.live {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.indicator {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.red-bin {
|
||||
border: 2px solid #ff7979;
|
||||
padding: 0 0.5rem 0.1rem;
|
||||
|
||||
@@ -24,7 +24,6 @@ const remainingBlueBuckets = computed(() =>
|
||||
const hasFeaturesInProgress = computed(
|
||||
() => featuresInProgress.value.length > 0
|
||||
)
|
||||
const hasFeaturesDone = computed(() => featuresDone.value.length > 0)
|
||||
const isLive = computed(
|
||||
() => props.step.title.toLocaleLowerCase() === 'release'
|
||||
)
|
||||
@@ -86,6 +85,9 @@ const isLive = computed(
|
||||
}
|
||||
|
||||
.feature-step {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
header {
|
||||
padding: 0.5rem;
|
||||
border: solid 2px var(--background-color);
|
||||
@@ -103,7 +105,7 @@ const isLive = computed(
|
||||
}
|
||||
|
||||
h5 {
|
||||
margin-bottom: 0;
|
||||
margin: 0;
|
||||
background-color: var(--background-color);
|
||||
padding: 0.35rem;
|
||||
text-align: center;
|
||||
|
||||
@@ -4,7 +4,7 @@ import { describe, it } from 'vitest'
|
||||
describe('feature fixture', () => {
|
||||
it('creates lots of animals', () => {
|
||||
for (let i = 0; i < 200; i++) {
|
||||
console.log(`"${faker.color.hsl()}", `)
|
||||
console.log(`"${faker.animal.bird()}", `)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { dogs } from '@/data/dog'
|
||||
import { birds } from '@/data/bird'
|
||||
import { Feature } from '@/modules/feature/feature'
|
||||
|
||||
export const features: Feature[] = dogs.map((name) => ({
|
||||
export const features: Feature[] = birds.map((name) => ({
|
||||
name,
|
||||
complexity: Math.floor(Math.random() * 6),
|
||||
leadTime: 0,
|
||||
|
||||
15
src/modules/feature/store.ts
Normal file
15
src/modules/feature/store.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Feature } from '@/modules/feature/feature'
|
||||
import { FeatureStep } from '@/modules/feature/feature-steps'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
type State = {
|
||||
steps: FeatureStep[]
|
||||
features: Feature[]
|
||||
}
|
||||
|
||||
export const featureStore = defineStore('feature', {
|
||||
state: (): State => ({
|
||||
steps: [],
|
||||
features: []
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user