-
Notifications
You must be signed in to change notification settings - Fork 34
Added kotlin runnable samples #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Stepic/WebStepViewController.swift
Outdated
| } | ||
|
|
||
| let scriptsString = "\(Scripts.localTexScript)\(Scripts.clickableImagesScript)" | ||
| let scriptsString = "\(Scripts.localTexScript)\(Scripts.clickableImagesScript)\(Scripts.kotlinRunnableSamples)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И этот скрипт будет подгружаться в каждом степе? К тому же он удаленный.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не уверен, что там не кешируется ничего, но поправлю, да
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Даже если это локальный скрипт, то он может быть тяжелым довольно. А если учесть, что у нас в обычных степах (в адаптивных ок) нет никакого лоадера (просто не появляется текст, пока webview не догрузила) – это плохо.
| } | ||
|
|
||
| let scriptsString = "\(Scripts.localTexScript)\(Scripts.clickableImagesScript)\(Scripts.kotlinRunnableSamples)" | ||
| var scriptsString = "\(Scripts.localTexScript)\(Scripts.clickableImagesScript)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ниже замечательный вызов buildHTMLStringWith, в которой похожие вещи делаются для аудио контрола. Давай туда это помещать.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, согласен.
Я лучше на следующей неделе отдельным PR-ом перепишу HTMLBuilder, добавив нормальный css туда
|
А как это потестить можно? |
Задача: #APPS-1952
Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Описание:
Добавил скрипт для парсинга Kotlin runnable samples