Skip to content

Commit

Permalink
fix: rename @Keyteq -> @labs-tech org name change for package
Browse files Browse the repository at this point in the history
  • Loading branch information
peec committed Sep 21, 2020
1 parent c4a747f commit 8a2408e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Access and select photos from your ImageShop account within the Sanity Studio.

## Installation

`sanity install @keyteq/sanity-plugin-asset-source-imageshop`
`sanity install @labs-tech/sanity-plugin-asset-source-imageshop`

Edit the config file found in your sanity project `./config/@keyteq/sanity-plugin-asset-source-imageshop.json` with your Image shop token ("IMAGESHOPTOKEN").
Edit the config file found in your sanity project `./config/@labs-tech/sanity-plugin-asset-source-imageshop.json` with your Image shop token ("IMAGESHOPTOKEN").

You can find the credentials in the ImageShop Admin.

Expand All @@ -19,7 +19,7 @@ You can find the credentials in the ImageShop Admin.

There are many ways to configure the interface for image selection.

All configuration can be found within `./config/@keyteq/asset-source-imageshop.json`.
All configuration can be found within `./config/@labs-tech/asset-source-imageshop.json`.


| Configuration key | Description | Type | Default value |
Expand Down Expand Up @@ -57,19 +57,19 @@ To simulate using your development version as a real module inside a studio, you
**With the mono-repo's `test-studio`:**

* Bootstrap the monorepo: `npm run bootstrap`
* Add `@keyteq/sanity-plugin-asset-source-imageshop` with the current version number to `package.json` in the `test-studio` root folder (but don't run `npm install` afterwards)
* Run `npm link @keyteq/sanity-plugin-asset-source-imageshop` inside the mono-repo's root.
* Add `@keyteq/sanity-plugin-asset-source-imageshop` to the list of the studios plugins in `sanity.json`.
* Add `@labs-tech/sanity-plugin-asset-source-imageshop` with the current version number to `package.json` in the `test-studio` root folder (but don't run `npm install` afterwards)
* Run `npm link @labs-tech/sanity-plugin-asset-source-imageshop` inside the mono-repo's root.
* Add `@labs-tech/sanity-plugin-asset-source-imageshop` to the list of the studios plugins in `sanity.json`.
* Restart the `test-studio`

**With a regular Sanity Studio:**
* Run `npm install`
* Add `@keyteq/sanity-plugin-asset-source-imageshop` with the current version number to `package.json`.
* Run `npm link @keyteq/sanity-plugin-asset-source-imageshop`
* Add `@keyteq/sanity-plugin-asset-source-imageshop` to the list of the studios plugins in `sanity.json`.
* Add `@labs-tech/sanity-plugin-asset-source-imageshop` with the current version number to `package.json`.
* Run `npm link @labs-tech/sanity-plugin-asset-source-imageshop`
* Add `@labs-tech/sanity-plugin-asset-source-imageshop` to the list of the studios plugins in `sanity.json`.
* Start the studio

When you are done and have published your new version, you can run `npm unlink` inside this repo, and `npm unlink @keyteq/sanity-plugin-asset-source-imageshop` inside the mono-repo or studio to get back to the normal state. Then run `npm run bootstrap` for the mono-repo or `npm install` inside the regular studio to use the published version.
When you are done and have published your new version, you can run `npm unlink` inside this repo, and `npm unlink @labs-tech/sanity-plugin-asset-source-imageshop` inside the mono-repo or studio to get back to the normal state. Then run `npm run bootstrap` for the mono-repo or `npm install` inside the regular studio to use the published version.


## Futher reading
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@keyteq/sanity-plugin-asset-source-imageshop",
"name": "@labs-tech/sanity-plugin-asset-source-imageshop",
"version": "1.0.2",
"description": "Sanity Studio plugin for using ImageShop to select images from",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/3rdparty-typings/sanity-parts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ declare module 'part:@sanity/components/dialogs/fullscreen-style' {
export default shim
}

declare module 'config:@keyteq/sanity-plugin-asset-source-imageshop' {
declare module 'config:@labs-tech/sanity-plugin-asset-source-imageshop' {
const shim: any
export default shim
}
4 changes: 2 additions & 2 deletions src/components/ImageShopAssetSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from 'react'
import Dialog from 'part:@sanity/components/dialogs/fullscreen'
import Spinner from 'part:@sanity/components/loading/spinner'
import pluginConfig from 'config:@keyteq/sanity-plugin-asset-source-imageshop'
import pluginConfig from 'config:@labs-tech/sanity-plugin-asset-source-imageshop'

import {
Asset,
Expand Down Expand Up @@ -137,7 +137,7 @@ export default class ImageShopAssetSource extends React.Component<Props, State>
<h2>Missing configuration</h2>
<p>You must first configure the plugin with your ImageShop credentials</p>
<p>
Edit the <code>./config/@keyteq/sanity-plugin-asset-source-imageshop.json</code> file in your Sanity Studio
Edit the <code>./config/@labs-tech/sanity-plugin-asset-source-imageshop.json</code> file in your Sanity Studio
folder.
</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"part:@sanity/components/buttons/button-grid": [
"./node_modules/@sanity/components/lib/buttons/ButtonGrid.js"
],
"config:@keyteq/sanity-plugin-asset-source-imageshop": [
"config:@labs-tech/sanity-plugin-asset-source-imageshop": [
"./config.dist.json"
]

Expand Down

0 comments on commit 8a2408e

Please sign in to comment.