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
import axios from 'axios' | |
export default function({ $axios, store }) { | |
$axios.onRequest((config) => { | |
const userAccessToken = store.state.auth.userAccessToken | |
if (userAccessToken) { | |
config.headers.common.Authorization = `Bearer ${userAccessToken}` | |
} | |
}) |
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
public extension Spacer { | |
static func maxHeight(_ value: CGFloat) -> some View { | |
Spacer(minLength: 0) | |
.frame(maxHeight: value) | |
.layoutPriority(-1) | |
} | |
static func maxWidth(_ value: CGFloat) -> some View { | |
Spacer(minLength: 0) |
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
// | |
// TranslucentTitleBarApp.swift | |
// TranslucentTitleBar | |
// | |
// Created by Alexander Sandberg on 20.10.22. | |
// | |
import SwiftUI | |
@main |
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
// | |
// ContentView.swift | |
// Playground | |
// | |
// Created by Alexander Sandberg on 23.03.24. | |
// | |
import SwiftUI | |
struct ContentView: View { |