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
// storage-adapter-import-placeholder | |
import { postgresAdapter } from '@payloadcms/db-postgres' | |
import { payloadCloudPlugin } from '@payloadcms/payload-cloud' | |
import { lexicalEditor } from '@payloadcms/richtext-lexical' | |
import path from 'path' | |
import { buildConfig } from 'payload' | |
import { fileURLToPath } from 'url' | |
import sharp from 'sharp' | |
import { Users } from './collections/Users' |
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 type { CollectionConfig } from 'payload/types' | |
export const Episodes: CollectionConfig { | |
slug: 'episodes', | |
admin: { | |
useAsTitle: 'title', | |
}, | |
access: { | |
read: () => true, | |
}, |
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 * as Migration from "@payloadcms/db-mongodb"; | |
import { Asset, ChainModifiers, createClient } from 'contentful'; | |
import * as ContentfulTypes from '../interfaces/contentful-case-studies'; | |
import { toSlatejsDocument } from '@contentful/contentful-slatejs-adapter'; | |
import * as PayloadTypes from "../interfaces/payload"; | |
import axios from "axios"; | |
import { Payload } from "payload"; | |
import https from "https"; | |
import { CollectionSlugs } from "../constants/slugs"; |
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
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy | |
# More GitHub Actions for Azure: https://github.com/Azure/actions | |
name: Build and deploy Payload + Next app to Azure Web App | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: |
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
<?php namespace App\Http; | |
use App\Http\Middleware\VerifyRecaptcha; | |
use Illuminate\Foundation\Http\Kernel as HttpKernel; | |
class Kernel extends HttpKernel | |
{ | |
/** | |
* The application's route middleware. | |
* |
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
FROM php:7.4-fpm | |
# Copy composer.lock and composer.json | |
COPY ../composer.lock composer.json /var/www/ | |
# Set working directory | |
WORKDIR /var/www | |
# Install dependencies | |
RUN apt-get update && apt-get install -y \ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" /> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" /> | |
<link rel="icon" type="image/x-icon" href="./assets/favicon.ico" /> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
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 {Md2MultiSelect} from "./components/md2/md2-multi-select"; | |
describe('example test usage of md2-select multiple test class', () => { | |
it("md2-select: should be able to check all options", () => { | |
const md2Select = new Md2MultiSelect('[name=anotherSelect]'); | |
md2Select.checkAll(); | |
md2Select.open(); | |
expect(element.all(by.css('.md2-select-content .md2-option')).count()).toEqual(element.all(by.css('.md2-selected')).count()); | |
}); |