open-index/open-npm huggingface dataset:
npm package: @redcode/medium-sdk
Description: NodeJS client for the Medium app
Author: Jamie Talbot
Latest version: 0.0.7

**Warning:** This sdk is no longer supported or maintained by Medium.


# Medium SDK for NodeJS

This repository contains the open source SDK for integrating [Medium](https://medium.com)'s OAuth2 API into your NodeJs app.

View the full [documentation here](https://github.com/Medium/medium-api-docs).

Install
-------

    npm install medium-sdk

Usage
-----

Create a client, then call commands on it.

```javascript
var medium = require('medium-sdk')

var client = new medium.MediumClient({
  clientId: 'YOUR_CLIENT_ID',
  clientSecret: 'YOUR_CLIENT_SECRET'
})

var redirectURL = 'https://yoursite.com/callback/medium'; 

var url = client.getAuthorizationUrl('secretState', redirectURL, [
  medium.Scope.BASIC_PROFILE, medium.Scope.PUBLISH_POST
])

// (Send the user to the authorization URL to obtain an authorization code.)

client.exchangeAuthorizationCode('YOUR_AUTHORIZATION_CODE', redirectURL, function (err, token) {
  client.getUser(function (err, user) {
    client.createPost({
      userId: user.id,
      title: 'A new post',
      contentFormat: medium.PostContentFormat.HTML,
      content: '<h1>A New Post</h1><p>This is my new post.</p>',
      publishStatus: medium.PostPublishStatus.DRAFT
    }, function (err, post) {
      console.log(token, user, post)
    })
  })
})
```

Contributing
------------

Questions, comments, bug reports, and pull requests are all welcomed. If you haven't contributed to a Medium project before please head over to the [Open Source Project](https://github.com/Medium/opensource#note-to-external-contributors) and fill out an OCLA (it should be pretty painless).

Authors
-------

[Jamie Talbot](https://github.com/majelbstoat)

License
-------

Copyright 2015 [A Medium Corporation](https://medium.com)

Licensed under Apache License Version 2.0.  Details in the attached LICENSE
file.
npm package: @redcollege/ui
Description: ![Logo de RedCollege](https://www.redcollege.cl/wp-content/uploads/2023/07/LOGO-300x54.png) <!-- Agrega tu logo aquí -->
Latest version: 1.0.5

# @redcollege/ui

![Logo de RedCollege](https://www.redcollege.cl/wp-content/uploads/2023/07/LOGO-300x54.png) <!-- Agrega tu logo aquí -->

@redcollege/ui es una colección de componentes de interfaz de usuario reutilizables diseñados para los productos de RedCollege. Construido con la API de composición de Vue 3 y estilizado con TailwindCSS, estos componentes tienen como objetivo proporcionar una interfaz de usuario coherente y flexible en todos nuestros proyectos. También se integra con Pinia para la gestión del estado, permitiendo almacenar datos como la información del usuario autenticado.

## Instalación

Para instalar el paquete, simplemente ejecuta:

```bash
npm install @redcollege/ui
```

## Uso

### Integración con Nuxt 3

Para usar `@redcollege/ui` en un proyecto Nuxt 3, necesitas crear un plugin con la siguiente configuración:

```javascript
// plugins/redcollege-ui.ts

import RedCollegeUI from '@redcollege/ui'
import { Navbar, Login } from '@redcollege/ui'

export default defineNuxtPlugin((nuxtApp) => {
    const pinia = useNuxtApp().$pinia;
    const router = useRouter();

    const { install, userStore } = RedCollegeUI(pinia);
    install(nuxtApp.vueApp)

    userStore.loadInstance(router)

    nuxtApp.vueApp.component('Navbar', Navbar)
    nuxtApp.vueApp.component('Login', Login)

    return {
        provide: {
            userStore
        }
    }
});
```

### Ejemplo de uso de componentes

Después de configurar el plugin, puedes utilizar los componentes en tus páginas o componentes de Vue 3:

```vue
<template>
  <div>
    <Navbar />
    <Login />
  </div>
</template>

<script setup lang="ts">
const { $userStore } = useNuxtApp();
</script>

<style>
/* Tus estilos personalizados aquí */
</style>
```

## Documentación

Para documentación detallada y ejemplos, por favor visita nuestro [repositorio en GitHub](https://github.com/RedCollege/ui-redcollege).

## Soporte

Si encuentras algún problema o tienes preguntas, no dudes en abrir un issue en nuestro [repositorio en GitHub](https://github.com/RedCollege/ui-redcollege/issues) o contactarnos en informatica@redcollege.net.

---

**¡Feliz coding!**
npm package: @redcollege/ui-kit
Description: Create Nuxt extendable layer with this GitHub template.
Latest version: 0.0.9

# Nuxt Layer Starter

Create Nuxt extendable layer with this GitHub template.

## Setup

Make sure to install the dependencies:

```bash
pnpm install
```

## Working on your theme

Your theme is at the root of this repository, it is exactly like a regular Nuxt project, except you can publish it on NPM.

The `.playground` directory should help you on trying your theme during development.

Running `pnpm dev` will prepare and boot `.playground` directory, which imports your theme itself.

## Distributing your theme

Your Nuxt layer is shaped exactly the same as any other Nuxt project, except you can publish it on NPM.

To do so, you only have to check if `files` in `package.json` are valid, then run:

```bash
npm publish --access public
```

Once done, your users will only have to run:

```bash
npm install --save your-theme
```

Then add the dependency to their `extends` in `nuxt.config`:

```ts
defineNuxtConfig({
  extends: 'your-theme'
})
```

## Development Server

Start the development server on http://localhost:3000

```bash
pnpm dev
```

## Production

Build the application for production:

```bash
pnpm build
```

Or statically generate it with:

```bash
pnpm generate
```

Locally preview production build:

```bash
pnpm preview
```

Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.