@acacha/casteaching 中文文档教程

发布于 3年前 浏览 20 项目主页 更新于 3年前

Instal·lació

```狂欢 npm 安装@acacha/casteaching

# Usage 

Example at: https://github.com/acacha/casteachingIonic/blob/1cb100635433f83b348574c138227c41f79c4fa5/src/main.js#L28-L38

javascript import casteaching from '@acacha/casteaching'

const api = casteaching({baseUrl: 'https://casteaching.alumnedam.me/api'})

// 可选:用于需要令牌的操作 // 示例 https://github.com/acacha/casteachingIonic/blob/f8afa6e65e4c5f7c5fde972b85ba95cf347f9c07/src/views/Login.vue#L102 api.setToken(token)

// 获取发布的视频列表 api.videos()

// 获取每个 ID 的视频 api.video.show(1)

// 创建视频 api.video.create({name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/…' })

// 更新视频 api.video.update(1,{name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/…' })

// 销毁 api.video.destroy(1)

## Obsolet (previous to 1.0.5)

javascript import casteaching from '@acacha/casteaching'

// Obtenir llista de vídeos publicats casteaching.videos()

// 获取每个 ID 的视频 casteaching.video.show(1)

// 创建视频 casteaching.video.create({name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/…' })

// 更新视频 casteaching.video.update(1,{name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/…' })

// 销毁 casteaching.video.destroy(1) ```

Autor

  • Sergi Tur Badenas: https://acacha.github.io
  • Instagram: https://instagram.com/acacha_dev
  • Github: https://github.com/acacha

图像

Codi font dels alumnes

  • Audí Bielsa, Daniel: https://github.com/daudi44/casteachingpackagedaudi
  • Avante Caballé, Marc: https://github.com/AvanteCaballe/casteaching_package
  • Brusca Manchón, Albert: https://github.com/Albert-Brusca/casteaching_package
  • Goncear, Tudor: https://github.com/tgoncear/casteaching-package
  • Moreno Giraldo, Jhon: Jhon1348: https://github.com/Jhon1348/casteaching_package
  • Muñoz Zafra, Ferran | https://github.com/Fmunozzafra/casteachingpackagefmz
  • Pont Lopez, David: Palanka777: https://github.com/Palanka777/casteaching_package.git
  • Rius Rivas, Alba: AlbaRiius: https://github.com/AlbaRiius/casteachingarrpackage
  • Tomas Altadill, Axel: AxelTomas99: https://github.com/AxelTomas99/TODO
  • Gabriel Urs. Gabriel: l3lackJack https://github.com/l3lackJack/casteaching_package
  • Tur Badenas, Sergi: Alumne DAM Prova: https://github.com/acachacasteachingpackage

Paquet a npmjs

  • Audí Bielsa, Daniel: https://www.npmjs.com/package/@daudi/casteachingdani
  • Avante Caballé, Marc: https://www.npmjs.com/package/@marcavante/casteachingavante
  • Brusca Manchón, Albert: https://www.npmjs.com/package/@abrusca/casteachingalbert
  • Goncear, Tudor: https://www.npmjs.com/package/tgoncearcasteaching
  • Moreno Giraldo, Jhon: https://www.npmjs.com/package/@john_3/casteaching
  • Pont Lopez, David: Palanka777: https://www.npmjs.com/package/@palanka777/casteaching_palanka
  • Rius Rivas, Alba: https://www.npmjs.com/package/@albariius/casteaching_arr
  • Tomas Altadill, Axel: TODO
  • Muñoz Zafra, Ferran: https://www.npmjs.com/package/casteaching_fmz
  • Urs, Gabriel: https://www.npmjs.com/package/@l3lackjack/casteaching
  • Tur Badenas, Sergi: Alumne DAM Prova: https://www.npmjs.com/package/@acacha/casteaching

More info

  • https://github.com/acacha/casteaching
  • https://github.com/acacha/casteaching_package

Creació de repositori propi

  • Scoped packages -> Prefix/espai de noms, evitar conflictes de noms -> @acacha/casteaching
  • Moure a un repositori a part
  • Actualitzar README
  • Github submodules

Instal·lació

```bash npm install @acacha/casteaching

# Usage 

Example at: https://github.com/acacha/casteachingIonic/blob/1cb100635433f83b348574c138227c41f79c4fa5/src/main.js#L28-L38

javascript import casteaching from '@acacha/casteaching'

const api = casteaching({baseUrl: 'https://casteaching.alumnedam.me/api'})

// OPTIONAL: for operations that requires token // Example https://github.com/acacha/casteachingIonic/blob/f8afa6e65e4c5f7c5fde972b85ba95cf347f9c07/src/views/Login.vue#L102 api.setToken(token)

// Obtenir llista de vídeos publicats api.videos()

// Obtenir vídeo per ID api.video.show(1)

// Crear video api.video.create({name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/…' })

// Update video api.video.update(1,{name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/…' })

// Destroy api.video.destroy(1)

## Obsolet (previous to 1.0.5)

javascript import casteaching from '@acacha/casteaching'

// Obtenir llista de vídeos publicats casteaching.videos()

// Obtenir vídeo per ID casteaching.video.show(1)

// Crear video casteaching.video.create({name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/…' })

// Update video casteaching.video.update(1,{name: 'PHP 101', description: 'Bla bla bla', url: 'https://youtube.com/…' })

// Destroy casteaching.video.destroy(1) ```

Autor

  • Sergi Tur Badenas: https://acacha.github.io
  • Instagram: https://instagram.com/acacha_dev
  • Github: https://github.com/acacha

image

Codi font dels alumnes

  • Audí Bielsa, Daniel: https://github.com/daudi44/casteachingpackagedaudi
  • Avante Caballé, Marc: https://github.com/AvanteCaballe/casteaching_package
  • Brusca Manchón, Albert: https://github.com/Albert-Brusca/casteaching_package
  • Goncear, Tudor: https://github.com/tgoncear/casteaching-package
  • Moreno Giraldo, Jhon: Jhon1348: https://github.com/Jhon1348/casteaching_package
  • Muñoz Zafra, Ferran | https://github.com/Fmunozzafra/casteachingpackagefmz
  • Pont Lopez, David: Palanka777: https://github.com/Palanka777/casteaching_package.git
  • Rius Rivas, Alba: AlbaRiius: https://github.com/AlbaRiius/casteachingarrpackage
  • Tomas Altadill, Axel: AxelTomas99: https://github.com/AxelTomas99/TODO
  • Gabriel Urs. Gabriel: l3lackJack https://github.com/l3lackJack/casteaching_package
  • Tur Badenas, Sergi: Alumne DAM Prova: https://github.com/acachacasteachingpackage

Paquet a npmjs

  • Audí Bielsa, Daniel: https://www.npmjs.com/package/@daudi/casteachingdani
  • Avante Caballé, Marc: https://www.npmjs.com/package/@marcavante/casteachingavante
  • Brusca Manchón, Albert: https://www.npmjs.com/package/@abrusca/casteachingalbert
  • Goncear, Tudor: https://www.npmjs.com/package/tgoncearcasteaching
  • Moreno Giraldo, Jhon: https://www.npmjs.com/package/@john_3/casteaching
  • Pont Lopez, David: Palanka777: https://www.npmjs.com/package/@palanka777/casteaching_palanka
  • Rius Rivas, Alba: https://www.npmjs.com/package/@albariius/casteaching_arr
  • Tomas Altadill, Axel: TODO
  • Muñoz Zafra, Ferran: https://www.npmjs.com/package/casteaching_fmz
  • Urs, Gabriel: https://www.npmjs.com/package/@l3lackjack/casteaching
  • Tur Badenas, Sergi: Alumne DAM Prova: https://www.npmjs.com/package/@acacha/casteaching

More info

  • https://github.com/acacha/casteaching
  • https://github.com/acacha/casteaching_package

Creació de repositori propi

  • Scoped packages -> Prefix/espai de noms, evitar conflictes de noms -> @acacha/casteaching
  • Moure a un repositori a part
  • Actualitzar README
  • Github submodules
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文