{"id":15103003,"url":"https://github.com/trychlos/pwix-modal-info","last_synced_at":"2026-01-21T16:02:12.782Z","repository":{"id":91959514,"uuid":"594766352","full_name":"trychlos/pwix-modal-info","owner":"trychlos","description":"A Bootstrap-based Meteor package which displays object informations in a modal dialog","archived":false,"fork":false,"pushed_at":"2024-10-04T13:32:53.000Z","size":158,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T22:37:27.148Z","etag":null,"topics":["bootstrap","dialog","informations","meteor","modal"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trychlos.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-29T15:27:44.000Z","updated_at":"2024-10-04T13:32:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"83072b45-a472-4fbe-b277-5bdb1f6fc45d","html_url":"https://github.com/trychlos/pwix-modal-info","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/trychlos/pwix-modal-info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-modal-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-modal-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-modal-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-modal-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trychlos","download_url":"https://codeload.github.com/trychlos/pwix-modal-info/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-modal-info/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","dialog","informations","meteor","modal"],"created_at":"2024-09-25T19:10:08.555Z","updated_at":"2026-01-21T16:02:12.766Z","avatar_url":"https://github.com/trychlos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pwix:modal-info\n\n## What is it ?\n\nThis is a Bootstrap-based Meteor package which displays standard informations about an object:\n\n- maybe a name as a (centered) title\n- created at\n- created by\n- last updated at\n- last updated by\n- identifier\n\n## Configuration\n\nNone at the moment.\n\n## What does it provide ?\n\n### A global object\n\n`ModalInfo`\n\n#### Functions\n\n##### `ModalInfo.configure()`\n\n    See [below](#configuration).\n\n#### `ModalInfo.i18n.namespace()`\n\nReturns the i18n namespace of the package.\n\n### Blaze components\n\n#### miButton\n\nJust a button which will triggers the dialog opening with the attached object.\n\nKnown parameters are:\n\n- `enabled`: whether the button should be enabled, defaulting to true, or a function which will receive these same parameters, and must return such a true|false value\n\n- `classButton`: the classes to be set on the button instead of the `btn-sm btn-primary` default\n\n- `stampFormat`: the strftime format to be used to display the date,\n   defaulting to the `Intl.DateTimeFormat()` format corresponding to the current locale\n\n- `titleButton`: the title attached to the button, defaulting to 'Informations about \u0026lt;name\u0026gt;'\n\n- `titleDialog`: the title of the to-be-opened dialog, defaulting to 'Informations'\n\n- `name`: the name to be displayed at the top of the object informations, defaulting to nothing\n\n- `object`: (mandatory) the object to be displayed, or a function which returns such an object.\n\nPlease note that all the parameters will always be passed to the `Modal.run()` function, and then to the `miPanel` template. We are so able to add here as many `pwix:modal` parameters as you want.\n\n#### miPanel\n\nThe display panel as an independant component. You are so able to integrate it into your own page.\n\nKnown parameters are:\n\n- name: the name to be displayed at the top of the object informations, as a HTML string, defaulting to nothing\n\n- object: (mandatory) the object to be displayed, or a function which returns such an object.\n\n![Informations](/maintainer/png/informations.png)\n\nThe function has following prototype: `async fn( \u003cObject\u003e) : Object`, and is called with the current data context.\n\nThis package relies on `pwix:accounts-hub` to asynchronously display the email address (resp. the username) of the creator/last updator of the provided object.\n\n## Configuration\n\nThe package's behavior can be configured through a call to the `ModalInfo.configure()` method, with just a single javascript object argument, which itself should only contains the options you want override.\n\nKnown configuration options are:\n\n- `label_zero`\n\n    Provides the label to be displayed when user identifier is zero, defaulting to `\u003cSystem\u003e`.\n\n- `verbosity`\n\n    Define the expected verbosity level.\n\n    The accepted value can be any or-ed combination of following:\n\n    - `ModalInfo.C.Verbose.NONE`\n\n        Do not display any trace log to the console\n\n    - `ModalInfo.C.Verbose.CONFIGURE`\n\n        Trace `ModalInfo.configure()` calls and their result\n\n    - `ModalInfo.C.Verbose.FUNCTIONS`\n\n        Trace all functions calls\n\nPlease note that `ModalInfo.configure()` method should be called in the same terms both in client and server sides.\n\nRemind too that Meteor packages are instanciated at application level. They are so only configurable once, or, in other words, only one instance has to be or can be configured. Addtionnal calls to `ModalInfo.configure()` will just override the previous one. You have been warned: **only the application should configure a package**.\n\n`ModalInfo.configure()` is a reactive data source.\n\n## NPM peer dependencies\n\nStarting with v 1.1.0, and in accordance with advices from [the Meteor Guide](https://guide.meteor.com/writing-atmosphere-packages.html#peer-npm-dependencies), we no more hardcode NPM dependencies in the `Npm.depends` clause of the `package.js`.\n\nInstead we check npm versions of installed packages at runtime, on server startup, in development environment.\n\nDependencies as of v 1.10.0:\n```\n    'lodash': '^4.17.0',\n    'strftime': '^0.10.0'\n```\nEach of these dependencies should be installed at application level:\n```\n    meteor npm install \u003cpackage\u003e --save\n```\n\n## Translations\n\nNew and updated translations are willingly accepted, and more than welcome. Just be kind enough to submit a PR on the [Github repository](https://github.com/trychlos/pwix-modal-info/pulls).\n\n---\nP. Wieser\n- Last updated on 2024, Oct. 4th\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrychlos%2Fpwix-modal-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrychlos%2Fpwix-modal-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrychlos%2Fpwix-modal-info/lists"}