-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.4.1' into v1
- Loading branch information
Showing
21 changed files
with
712 additions
and
441 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,46 @@ | ||
{ | ||
"name": "nystudio107/craft-recipe", | ||
"description": "A comprehensive recipe FieldType for Craft CMS that includes metric/imperial conversion, portion calculation, and JSON-LD microdata support", | ||
"type": "craft-plugin", | ||
"version": "1.4.0", | ||
"keywords": [ | ||
"craft", | ||
"cms", | ||
"craftcms", | ||
"craft-plugin", | ||
"recipe" | ||
], | ||
"support": { | ||
"docs": "https://nystudio107.com/plugins/recipe/documentation", | ||
"issues": "https://nystudio107.com/plugins/recipe/support" | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "nystudio107", | ||
"homepage": "https://nystudio107.com" | ||
} | ||
], | ||
"require": { | ||
"craftcms/cms": "^3.0.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"nystudio107\\recipe\\": "src/" | ||
} | ||
"name": "nystudio107/craft-recipe", | ||
"description": "A comprehensive recipe FieldType for Craft CMS that includes metric/imperial conversion, portion calculation, and JSON-LD microdata support", | ||
"type": "craft-plugin", | ||
"version": "1.4.1", | ||
"keywords": [ | ||
"craft", | ||
"cms", | ||
"craftcms", | ||
"craft-plugin", | ||
"recipe" | ||
], | ||
"support": { | ||
"docs": "https://nystudio107.com/docs/recipe/", | ||
"issues": "https://nystudio107.com/plugins/recipe/support", | ||
"source": "https://github.com/nystudio107/craft-recipe" | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "nystudio107", | ||
"homepage": "https://nystudio107.com" | ||
} | ||
], | ||
"require": { | ||
"craftcms/cms": "^3.0.0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"craftcms/plugin-installer": true, | ||
"yiisoft/yii2-composer": true | ||
}, | ||
"extra": { | ||
"name": "Recipe", | ||
"handle": "recipe", | ||
"schemaVersion": "1.0.0", | ||
"hasCpSettings": true, | ||
"hasCpSection": false, | ||
"changelogUrl": "https://raw.githubusercontent.com/nystudio107/craft-recipe/v1/CHANGELOG.md", | ||
"class": "nystudio107\\recipe\\Recipe" | ||
"optimize-autoloader": true, | ||
"sort-packages": true | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"nystudio107\\recipe\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"class": "nystudio107\\recipe\\Recipe", | ||
"handle": "recipe", | ||
"name": "Recipe" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/vendor | ||
/node_modules | ||
docs/.vitepress/dist |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import {defineConfig} from 'vitepress' | ||
|
||
export default defineConfig({ | ||
title: 'Recipe Plugin', | ||
description: 'Documentation for the Recipe plugin', | ||
base: '/docs/recipe/', | ||
lang: 'en-US', | ||
head: [ | ||
['meta', {content: 'https://github.com/nystudio107', property: 'og:see_also',}], | ||
['meta', {content: 'https://twitter.com/nystudio107', property: 'og:see_also',}], | ||
['meta', {content: 'https://youtube.com/nystudio107', property: 'og:see_also',}], | ||
['meta', {content: 'https://www.facebook.com/newyorkstudio107', property: 'og:see_also',}], | ||
], | ||
themeConfig: { | ||
socialLinks: [ | ||
{icon: 'github', link: 'https://github.com/nystudio107'}, | ||
{icon: 'twitter', link: 'https://twitter.com/nystudio107'}, | ||
], | ||
logo: '/img/plugin-logo.svg', | ||
editLink: { | ||
pattern: 'https://github.com/nystudio107/craft-recipe/edit/develop/docs/docs/:path', | ||
text: 'Edit this page on GitHub' | ||
}, | ||
algolia: { | ||
appId: 'ANVOBU7GYX', | ||
apiKey: 'd9aa4fc31d67fba1d38915de67311070', | ||
indexName: 'recipe' | ||
}, | ||
lastUpdatedText: 'Last Updated', | ||
sidebar: [], | ||
nav: [ | ||
{text: 'Home', link: 'https://nystudio107.com/plugins/recipe'}, | ||
{text: 'Store', link: 'https://plugins.craftcms.com/recipe'}, | ||
{text: 'Changelog', link: 'https://nystudio107.com/plugins/recipe/changelog'}, | ||
{text: 'Issues', link: 'https://github.com/nystudio107/craft-recipe/issues'}, | ||
] | ||
}, | ||
}); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,7 @@ | |
.DocSearch { | ||
--docsearch-primary-color: var(--c-brand) !important; | ||
} | ||
|
||
a > img { | ||
display: inline-block; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import Theme from 'vitepress/theme' | ||
import {h, watch} from 'vue' | ||
import './custom.css' | ||
|
||
import NYSLogo from './NYSLogo.vue'; | ||
|
||
// Could also come from .env | ||
const GA_ID = 'UA-69117511-1'; | ||
|
||
export default { | ||
...Theme, | ||
Layout() { | ||
return h(Theme.Layout, null, { | ||
'aside-bottom': () => h(NYSLogo) | ||
} | ||
) | ||
}, | ||
enhanceApp: (ctx) => { | ||
// Google analytics integration | ||
if (import.meta.env.PROD && GA_ID && typeof window !== 'undefined') { | ||
(function (i, s, o, g, r, a, m) { | ||
i['GoogleAnalyticsObject'] = r | ||
i[r] = i[r] || function () { | ||
(i[r].q = i[r].q || []).push(arguments) | ||
} | ||
i[r].l = 1 * new Date() | ||
a = s.createElement(o) | ||
m = s.getElementsByTagName(o)[0] | ||
a.async = 1 | ||
a.src = g | ||
m.parentNode.insertBefore(a, m) | ||
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga') | ||
ga('create', GA_ID, 'auto') | ||
ga('set', 'anonymizeIp', true) | ||
// Send a page view any time the route changes | ||
watch(ctx.router.route, (newValue, oldValue) => { | ||
ga('set', 'page', newValue.path) | ||
ga('send', 'pageview') | ||
}) | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare module "*.vue" { | ||
import Vue from 'vue'; | ||
export default Vue; | ||
} | ||
|
||
declare module 'rollup-plugin-sitemap'; | ||
declare module 'NYSLogo'; |
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.