forked from ProjectMirador/mirador
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COLUMBIA: Add badges for hinting to viewer where additional resources…
… are available - consolidate selectors where possible - add license information for forked plugins in monorepo
- Loading branch information
Showing
26 changed files
with
984 additions
and
158 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2023-2024 Trustees of Columbia University | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
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 @@ | ||
# culPlugins | ||
culPlugins collects forked Mirador 3 plugins: | ||
- mirador-canvaslink | ||
- mirador-downloaddialog | ||
- mirador-hinting-sidebar (which is a fork of the core Mirador sidebar components) | ||
|
||
... and a number of Columbia Libraries-developed plugins into a [monorepo](https://en.wikipedia.org/wiki/Monorepo) for deployment. Forked plugins include the original license, with additional copyright statements as appropriate. |
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
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,22 @@ | ||
# The MIT License (MIT) | ||
|
||
Copyright © 2023-2024 The Trustees of Columbia University | ||
Copyright © 2022-2023 Open Source at the Bayerische Staatsbibliothek | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,2 @@ | ||
# mirador-canvaslink | ||
This plugin was originally forked from https://github.com/dbmdz/mirador-canvaslink under the MIT license. |
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,84 +1,53 @@ | ||
exports.__esModule = true; | ||
exports.default = undefined; | ||
const _actions = require('../../state/actions'); | ||
const _selectors = require('../../state/selectors'); | ||
const _ShareCanvasLinkDialog = _interopRequireDefault(require('./components/ShareCanvasLinkDialog')); | ||
const _ShareControl = _interopRequireDefault(require('./components/ShareControl')); | ||
const _locales = _interopRequireDefault(require('./locales')); | ||
const _selectors2 = require('./state/selectors'); | ||
import { updateWindow } from '../../state/actions'; | ||
import { | ||
getCanvases, | ||
getContainerId, | ||
getRights, | ||
getVisibleCanvases, | ||
getWindowManifests, | ||
getWindowViewType, | ||
} from '../../state/selectors'; | ||
|
||
/** */ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const _default = [{ | ||
component: _ShareControl.default, | ||
config: { | ||
translations: _locales.default, | ||
}, | ||
/** */ | ||
mapDispatchToProps: function mapDispatchToProps(dispatch, _ref) { | ||
const { windowId } = _ref; | ||
return { | ||
/** */ | ||
updateConfig: function updateConfig(canvasLink) { | ||
return dispatch((0, _actions.updateWindow)(windowId, { | ||
canvasLink, | ||
})); | ||
}, | ||
}; | ||
}, | ||
/** */ | ||
mapStateToProps: function mapStateToProps(state, _ref2) { | ||
const { windowId } = _ref2; | ||
return { | ||
config: (0, _selectors2.getPluginConfig)(state, { | ||
windowId, | ||
}), | ||
containerId: (0, _selectors.getContainerId)(state), | ||
windowViewType: (0, _selectors.getWindowViewType)(state, { | ||
windowId, | ||
}), | ||
}; | ||
}, | ||
mode: 'add', | ||
target: 'WindowTopBarPluginArea', | ||
}, { | ||
component: _ShareCanvasLinkDialog.default, | ||
config: { | ||
translations: _locales.default, | ||
}, | ||
/** */ | ||
mapDispatchToProps: function mapDispatchToProps(dispatch, _ref3) { | ||
const { windowId } = _ref3; | ||
return { | ||
/** */ | ||
updateConfig: function updateConfig(canvasLink) { | ||
return dispatch((0, _actions.updateWindow)(windowId, { | ||
canvasLink, | ||
})); | ||
}, | ||
}; | ||
import ShareCanvasLinkDialog from './components/ShareCanvasLinkDialog'; | ||
import ShareControl from './components/ShareControl'; | ||
import translations from './locales'; | ||
import { getPluginConfig } from './state/selectors'; | ||
|
||
export default [ | ||
{ | ||
component: ShareControl, | ||
config: { | ||
translations, | ||
}, | ||
mapDispatchToProps: (dispatch, { windowId }) => ({ | ||
updateConfig: (canvasLink) => dispatch(updateWindow(windowId, { canvasLink })), | ||
}), | ||
mapStateToProps: (state, { windowId }) => ({ | ||
config: getPluginConfig(state, { windowId }), | ||
containerId: getContainerId(state), | ||
windowViewType: getWindowViewType(state, { windowId }), | ||
}), | ||
mode: 'add', | ||
target: 'WindowTopBarPluginArea', | ||
}, | ||
/** */ | ||
mapStateToProps: function mapStateToProps(state, _ref4) { | ||
const { windowId } = _ref4; | ||
return { | ||
config: (0, _selectors2.getPluginConfig)(state, { | ||
windowId, | ||
}), | ||
containerId: (0, _selectors.getContainerId)(state), | ||
manifestId: (0, _selectors.getWindowManifests)(state, { | ||
windowId, | ||
})[0], | ||
rights: (0, _selectors.getRights)(state, { | ||
windowId, | ||
}), | ||
visibleCanvases: (0, _selectors.getVisibleCanvases)(state, { | ||
windowId, | ||
}), | ||
}; | ||
{ | ||
component: ShareCanvasLinkDialog, | ||
config: { | ||
translations, | ||
}, | ||
mapDispatchToProps: (dispatch, { windowId }) => ({ | ||
updateConfig: (canvasLink) => dispatch(updateWindow(windowId, { canvasLink })), | ||
}), | ||
mapStateToProps: (state, { windowId }) => ({ | ||
canvases: getCanvases(state, { windowId }), | ||
config: getPluginConfig(state, { windowId }), | ||
containerId: getContainerId(state), | ||
manifestId: getWindowManifests(state, { windowId })[0], | ||
rights: getRights(state, { windowId }), | ||
visibleCanvases: getVisibleCanvases(state, { windowId }), | ||
windowViewType: getWindowViewType(state, { windowId }), | ||
}), | ||
mode: 'add', | ||
target: 'Window', | ||
}, | ||
mode: 'add', | ||
target: 'Window', | ||
}]; | ||
exports.default = _default; | ||
module.exports = exports.default; | ||
]; |
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.