@rolatech/angular-course 17.3.11 → 17.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/pages/course/course-category/course-category.component.mjs +3 -3
- package/esm2022/lib/pages/course/course-index/course-index.component.mjs +3 -3
- package/fesm2022/{rolatech-angular-course-course-index.component-BttI5cFt.mjs → rolatech-angular-course-course-index.component-Coi-PJ0u.mjs} +5 -5
- package/fesm2022/rolatech-angular-course-course-index.component-Coi-PJ0u.mjs.map +1 -0
- package/fesm2022/{rolatech-angular-course-rolatech-angular-course-BqHXRh-Q.mjs → rolatech-angular-course-rolatech-angular-course-BN5Sl_LU.mjs} +4 -4
- package/fesm2022/rolatech-angular-course-rolatech-angular-course-BN5Sl_LU.mjs.map +1 -0
- package/fesm2022/rolatech-angular-course.mjs +1 -1
- package/package.json +1 -1
- package/fesm2022/rolatech-angular-course-course-index.component-BttI5cFt.mjs.map +0 -1
- package/fesm2022/rolatech-angular-course-rolatech-angular-course-BqHXRh-Q.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as CourseActionComponent, A as CourseDetailsComponent, y as CourseDetailsDialogComponent, z as CourseEditDialogComponent, j as CourseInfoComponent, t as CourseItemComponent, k as CourseMediaComponent, B as CourseMediaOwnerRendererComponent, i as CoursePreviewComponent, u as CoursePricingAddDialogComponent, l as CoursePricingComponent, w as CoursePricingDialogComponent, e as CourseRequestStatus, g as CourseReviewStatus, v as CourseScheduleAddDialogComponent, n as CourseScheduleComponent, x as CourseScheduleDialogComponent, q as CourseSectionItemComponent, h as CourseSectionLectureContentType, r as CourseSectionLectureItemComponent, D as CourseSectionLectureVideoDialogComponent, s as CourseSectionLectureVideoItemComponent, o as CourseSectionsComponent, d as CourseStatus, f as CourseType, F as DetailItemComponent, P as PricingItemComponent, S as ScheduleDate, E as ScheduleItemComponent, b as courseManageRoutes, c as courseRoutes, p as provideAngulaCourse } from './rolatech-angular-course-rolatech-angular-course-
|
|
1
|
+
export { m as CourseActionComponent, A as CourseDetailsComponent, y as CourseDetailsDialogComponent, z as CourseEditDialogComponent, j as CourseInfoComponent, t as CourseItemComponent, k as CourseMediaComponent, B as CourseMediaOwnerRendererComponent, i as CoursePreviewComponent, u as CoursePricingAddDialogComponent, l as CoursePricingComponent, w as CoursePricingDialogComponent, e as CourseRequestStatus, g as CourseReviewStatus, v as CourseScheduleAddDialogComponent, n as CourseScheduleComponent, x as CourseScheduleDialogComponent, q as CourseSectionItemComponent, h as CourseSectionLectureContentType, r as CourseSectionLectureItemComponent, D as CourseSectionLectureVideoDialogComponent, s as CourseSectionLectureVideoItemComponent, o as CourseSectionsComponent, d as CourseStatus, f as CourseType, F as DetailItemComponent, P as PricingItemComponent, S as ScheduleDate, E as ScheduleItemComponent, b as courseManageRoutes, c as courseRoutes, p as provideAngulaCourse } from './rolatech-angular-course-rolatech-angular-course-BN5Sl_LU.mjs';
|
|
2
2
|
import '@angular/core';
|
|
3
3
|
import '@angular/forms';
|
|
4
4
|
import '@angular/common';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-course-course-index.component-BttI5cFt.mjs","sources":["../../../../libs/angular-course/src/lib/pages/course/course-index/course-index.component.ts","../../../../libs/angular-course/src/lib/pages/course/course-index/course-index.component.html"],"sourcesContent":["import { Component, inject, OnInit } from '@angular/core';\nimport { CourseCategory, Course } from '../../../interfaces';\nimport { CategoryService, CourseService } from '../../../services';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule, BaseComponent } from '@rolatech/angular-components';\nimport { CourseItemComponent } from '../../../components/course-item/course-item.component';\n\n@Component({\n standalone: true,\n imports: [AngularCommonModule, AngularComponentsModule, CourseItemComponent],\n selector: 'rolatech-course-index',\n templateUrl: './course-index.component.html',\n styleUrls: ['./course-index.component.scss'],\n})\nexport class CourseIndexComponent extends BaseComponent implements OnInit {\n courses: Course[] = [];\n categories: CourseCategory[] = [];\n courseService = inject(CourseService);\n categoryService = inject(CategoryService);\n meta: any;\n loading = false;\n\n ngOnInit(): void {\n this.findCategories();\n this.findCourses();\n this.titleService.setTitle('课程 - 拼小课');\n }\n findCourses() {\n this.loading = true;\n const options = {\n sort: 'updatedAt desc',\n filter: 'published:true',\n };\n this.courseService.find(options).subscribe({\n next: (res: any) => {\n this.courses = res.data;\n this.meta = res.meta;\n this.loading = false;\n },\n error: (error) => {\n this.loading = false;\n },\n });\n }\n findCategories() {\n this.categoryService.find({}).subscribe({\n next: (res: any) => {\n this.categories = res.data;\n },\n });\n }\n}\n","<div class=\"min-w-[320px] max-w-[1120px] m-auto\">\n <div class=\"p-3 hidden md:block text-2xl font-medium\">全部课程</div>\n @if (loading) {\n @for (number of [0, 1, 2, 3, 4, 5]; track number) {\n <div class=\"flex flex-row animate-pulse mt-3 mr-4 cursor-pointer w-full\">\n <div class=\"h-fit w-2/5 md:w-1/4 aspect-video bg-gray-200 rounded-lg\"></div>\n <div class=\"w-3/5 md:w-3/4 ml-3 py-1 flex flex-col justify-between\">\n <div class=\"space-y-3\">\n <div class=\"h-4 bg-slate-200 rounded col-span-2\"></div>\n <div class=\"h-2 bg-slate-200 rounded col-span-1\"></div>\n <div class=\"h-2 bg-slate-200 rounded col-span-1 py-1\"></div>\n </div>\n <div>\n <div class=\"h-2 bg-slate-200 rounded col-span-2 py-1\"></div>\n </div>\n </div>\n </div>\n }\n } @else {\n @for (item of courses; track $index) {\n <div\n class=\"py-2 cursor-pointer min-w-[80%] md:min-w-[33%] hover:bg-gray-100 dark:hover:!bg-gray-700\"\n [routerLink]=\"['./', item.id]\"\n >\n @defer {\n <rolatech-course-item [course]=\"item\"></rolatech-course-item>\n }\n </div>\n }\n }\n</div>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM,MAAO,oBAAqB,SAAQ,aAAa,CAAA;AAPvD,IAAA,WAAA,GAAA;;QAQE,IAAO,CAAA,OA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