serviceName
below is the name of the Service you're adding
currently, pocket is already included
- in the
src/pages/oauth
folder, add a new fileserviceName.html
- this page can be a copy of the
pocket.html
page in that same folder - one thing to change:
service="serviceName"
on the rootdiv
- this page can be a copy of the
- in
src/manifest.json
, underweb_accessible_resources
, add this new./pages/oauth/serviceName.html
page
- in
src/services
create a newserviceName
folder- the
index.ts
of this folder should export:- an object named
serviceName
that adhere to theService
interfacethis obviously means that you have to implement those methods
- a string literal type whose value is
serviceName
- an object named
- the
- in
src/services/index.ts
- import both items from the new
serviceName
mentionned above - add the type to the existing
ServiceNames
type (with a|
) - add the object as a key of the existing exported
services
object
- import both items from the new