parent
a1d1b53ff4
commit
98659f6cfc
|
@ -20,7 +20,6 @@ type MastodonAccount () =
|
||||||
member val Url = "" with get, set
|
member val Url = "" with get, set
|
||||||
|
|
||||||
|
|
||||||
open FSharp.Control.Tasks
|
|
||||||
open Microsoft.Extensions.Logging
|
open Microsoft.Extensions.Logging
|
||||||
open System
|
open System
|
||||||
open System.Net.Http
|
open System.Net.Http
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/// Data access functions for Jobs, Jobs, Jobs
|
/// Data access functions for Jobs, Jobs, Jobs
|
||||||
module JobsJobsJobs.Api.Data
|
module JobsJobsJobs.Api.Data
|
||||||
|
|
||||||
open FSharp.Control.Tasks
|
|
||||||
open JobsJobsJobs.Domain.Types
|
open JobsJobsJobs.Domain.Types
|
||||||
open Polly
|
open Polly
|
||||||
open RethinkDb.Driver
|
open RethinkDb.Driver
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/// Route handlers for Giraffe endpoints
|
/// Route handlers for Giraffe endpoints
|
||||||
module JobsJobsJobs.Api.Handlers
|
module JobsJobsJobs.Api.Handlers
|
||||||
|
|
||||||
open FSharp.Control.Tasks
|
|
||||||
open Giraffe
|
open Giraffe
|
||||||
open JobsJobsJobs.Domain
|
open JobsJobsJobs.Domain
|
||||||
open JobsJobsJobs.Domain.SharedTypes
|
open JobsJobsJobs.Domain.SharedTypes
|
||||||
|
@ -288,7 +287,7 @@ module Listing =
|
||||||
// PATCH: /api/listing/[id]
|
// PATCH: /api/listing/[id]
|
||||||
let expire listingId : HttpHandler =
|
let expire listingId : HttpHandler =
|
||||||
authorize
|
authorize
|
||||||
>=> fun next ctx -> task {
|
>=> fun next ctx -> FSharp.Control.Tasks.Affine.task {
|
||||||
let dbConn = conn ctx
|
let dbConn = conn ctx
|
||||||
let now = clock(ctx).GetCurrentInstant ()
|
let now = clock(ctx).GetCurrentInstant ()
|
||||||
match! Data.Listing.findById (ListingId listingId) dbConn with
|
match! Data.Listing.findById (ListingId listingId) dbConn with
|
||||||
|
@ -309,8 +308,7 @@ module Listing =
|
||||||
| None -> ()
|
| None -> ()
|
||||||
return! ok next ctx
|
return! ok next ctx
|
||||||
| None -> return! Error.notFound next ctx
|
| None -> return! Error.notFound next ctx
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// GET: /api/listing/search
|
// GET: /api/listing/search
|
||||||
let search : HttpHandler =
|
let search : HttpHandler =
|
||||||
|
|
18553
src/JobsJobsJobs/App/package-lock.json
generated
18553
src/JobsJobsJobs/App/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jobs-jobs-jobs",
|
"name": "jobs-jobs-jobs",
|
||||||
"version": "2.1.0",
|
"version": "2.2.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
|
|
|
@ -1,16 +1,34 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
nav.navbar.navbar-light.bg-light
|
nav.navbar.navbar-dark.mobile
|
||||||
|
span.navbar-text: router-link(to="/") Jobs, Jobs, Jobs
|
||||||
|
button.btn(data-bs-toggle="offcanvas" data-bs-target="#mobileMenu" aria-controls="mobileMenu")
|
||||||
|
icon(:icon="mdiMenu")
|
||||||
|
nav.navbar.navbar-light.bg-light.wide
|
||||||
span
|
span
|
||||||
span.navbar-text.
|
span.navbar-text.
|
||||||
(…and Jobs – #[audio-clip(clip="pelosi-jobs") Let’s Vote for Jobs!])
|
(…and Jobs – #[audio-clip(clip="pelosi-jobs") Let’s Vote for Jobs!])
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { mdiMenu } from "@mdi/js"
|
||||||
import AudioClip from "@/components/AudioClip.vue"
|
import AudioClip from "@/components/AudioClip.vue"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.navbar-text
|
.mobile
|
||||||
font-style: italic
|
background-image: linear-gradient(0deg, green 0%, darkgreen 70%)
|
||||||
padding-right: 1rem
|
button
|
||||||
|
padding: 0 1rem 0 0
|
||||||
|
.navbar-text
|
||||||
|
font-weight: bold
|
||||||
|
color: white
|
||||||
|
.wide
|
||||||
|
display: none
|
||||||
|
@media (min-width: 768px)
|
||||||
|
.wide
|
||||||
|
display: flex
|
||||||
|
.mobile
|
||||||
|
display: none
|
||||||
|
.navbar-text
|
||||||
|
font-style: italic
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user