Skip to content

Commit

Permalink
Typescript, types & template helper name
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Dec 21, 2022
1 parent f82a306 commit f072a4d
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 16 deletions.
4 changes: 4 additions & 0 deletions accounts-line/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## 1.3.0 - 2022-12-21
* Typescript re-write
* Add `zodern:types` for type support

## 1.2.3 - 2021-06-24
* Compatibility fix for Meteor 2.3

Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions accounts-line/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import './line'
import './notice'
File renamed without changes.
3 changes: 3 additions & 0 deletions accounts-line/package-types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typesEntry": "main.ts"
}
11 changes: 6 additions & 5 deletions accounts-line/package.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
Package.describe({
name: 'storyteller:accounts-line',
summary: 'Login service for LINE accounts',
version: '1.2.3',
version: '1.3.0',
git: 'https://github.com/StorytellerCZ/meteor-accounts-line'
});

Package.onUse(api => {
api.versionsFrom(['1.12', '2.3']);
api.use('ecmascript');
api.versionsFrom('2.3');
api.use(['ecmascript', 'typescript']);
api.use('zodern:types')
api.use('accounts-base', ['client', 'server']);
// Export Accounts (etc) to packages using this one.
api.imply('accounts-base', ['client', 'server']);
Expand All @@ -17,7 +18,7 @@ Package.onUse(api => {

// If users use accounts-ui but not facebook-config-ui, give them a tip.
api.use(['accounts-ui', 'storyteller:line-config-ui@1.1.2'], ['client', 'server'], { weak: true });
api.addFiles('notice.js');
api.addFiles('notice.ts');

api.addFiles('line.js');
api.addFiles('line.ts');
});
4 changes: 4 additions & 0 deletions line-config-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## 1.2.0 - 2022-12-21
* Typescript
* `zodern:types` added
* Fix helper names

## 1.1.2 - 2021-06-24
* Update dependencies
Expand Down
2 changes: 1 addition & 1 deletion line-config-ui/line_configure.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<template name="configureLoginServiceDialogForWattpad">
<template name="configureLoginServiceDialogForLine">
<p>
First, you'll need to register your app on LINE. Follow these steps:
</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';

Template.configureLoginServiceDialogForWattpad.helpers({
Template.configureLoginServiceDialogForLine.helpers({
siteUrl: () => Meteor.absoluteUrl()
});

Template.configureLoginServiceDialogForWattpad.fields = () => [
Template.configureLoginServiceDialogForLine.fields = () => [
{ property: 'channelId', label: 'Channel ID' },
{ property: 'secret', label: 'Channel Secret' }
];
1 change: 1 addition & 0 deletions line-config-ui/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './line_configure'
3 changes: 3 additions & 0 deletions line-config-ui/package-types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typesEntry": "main.ts"
}
11 changes: 6 additions & 5 deletions line-config-ui/package.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Package.describe({
name: 'storyteller:line-config-ui',
summary: 'Blaze configuration templates for LINE OAuth.',
version: '1.1.2',
version: '1.2.0',
git: 'https://github.com/StorytellerCZ/meteor-accounts-line'
});

Package.onUse(api => {
api.versionsFrom('1.12');
api.use('ecmascript', 'client');
api.use('templating@1.4.1', 'client');
api.versionsFrom('2.3');
api.use('zodern:types', 'server')
api.use(['ecmascript', 'typescript'], 'client');
api.use('templating', 'client');

api.addFiles('line_login_button.css', 'client');
api.addFiles(['line_configure.html', 'line_configure.js'], 'client');
api.addFiles(['line_configure.html', 'line_configure.ts'], 'client');
});
1 change: 1 addition & 0 deletions line-oauth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog
## 1.3.0 - 2022-12-13
* Compatibility with Meteor 2.9
* Typescript conversion

## 1.2.3 - 2022-10-19
* Added missing imports into the code
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions line-oauth/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import './line_server'
import './line_client'
3 changes: 3 additions & 0 deletions line-oauth/package-types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typesEntry": "main.ts"
}
7 changes: 4 additions & 3 deletions line-oauth/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ Npm.depends({

Package.onUse(api => {
api.versionsFrom(['2.9']);
api.use('ecmascript', ['client', 'server']);
api.use('zodern:types', 'server')
api.use(['ecmascript', 'typescript'], ['client', 'server']);
api.use('oauth2', ['client', 'server']);
api.use('oauth', ['client', 'server']);
api.use(['fetch', 'url'], 'server');
api.use('random', 'client');
api.use('service-configuration', ['client', 'server']);

api.addFiles('line_client.js', 'client');
api.addFiles('line_server.js', 'server');
api.addFiles('line_client.ts', 'client');
api.addFiles('line_server.ts', 'server');

api.export('Line');
});

0 comments on commit f072a4d

Please sign in to comment.